Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2002 15:01:06 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 9147 for review
Message-ID:  <200204052301.g35N16K13505@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=9147

Change 9147 by jhb@jhb_laptop on 2002/04/05 15:00:57

	Small Giant pushdown.

Affected files ...

... //depot/projects/smpng/sys/kern/kern_exit.c#29 integrate

Differences ...

==== //depot/projects/smpng/sys/kern/kern_exit.c#29 (text+ko) ====

@@ -506,17 +506,15 @@
 	struct pargs *pa;
 	int status, error;
 
-	mtx_lock(&Giant);
 	q = td->td_proc;
 	if (uap->pid == 0) {
 		PROC_LOCK(q);
 		uap->pid = -q->p_pgid;
 		PROC_UNLOCK(q);
 	}
-	if (uap->options &~ (WUNTRACED|WNOHANG|WLINUXCLONE)) {
-		error = EINVAL;
-		goto done2;
-	}
+	if (uap->options &~ (WUNTRACED|WNOHANG|WLINUXCLONE))
+		return (EINVAL);
+	mtx_lock(&Giant);
 loop:
 	nfound = 0;
 	sx_slock(&proctree_lock);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204052301.g35N16K13505>