Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2002 06:29:55 -0700 (PDT)
From:      Jonathan Mini <mini@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10787 for review
Message-ID:  <200205041329.g44DTtU81768@freefall.freebsd.org>

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

Change 10787 by mini@mini_stylus on 2002/05/04 06:29:36

	tsleep() just before we bail, to act more like current.

Affected files ...

... //depot/projects/kse/sys/kern/kern_fork.c#66 edit

Differences ...

==== //depot/projects/kse/sys/kern/kern_fork.c#66 (text+ko) ====

@@ -337,12 +337,12 @@
 	if (!ok) {
 		sx_xunlock(&allproc_lock);
 		uma_zfree(proc_zone, newproc);
-		tsleep(&forksleep, PUSER, "fork", hz / 2);
 		if (p1->p_flag & P_KSES) {
 			PROC_LOCK(p1);
 			thread_single_end();
 			PROC_UNLOCK(p1);
 		}
+		tsleep(&forksleep, PUSER, "fork", hz / 2);
 		return (EAGAIN);
 	}
 

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?200205041329.g44DTtU81768>