PERFORCE change 106541 for review
Roman Divacky
rdivacky at FreeBSD.org
Sat Sep 23 02:39:14 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=106541
Change 106541 by rdivacky at rdivacky_witten on 2006/09/23 09:38:17
This fixes clone05 test from LTP. But I dont understand the logic much this will
need someone to look at it because its possible that we are waiting and timeouting
or something. Anyway - linux_vfork() doesnt seem to need this which is strange.
Affected files ...
.. //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_machdep.c#4 edit
.. //depot/projects/linuxolator/src/sys/i386/linux/linux_machdep.c#3 edit
Differences ...
==== //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_machdep.c#4 (text+ko) ====
@@ -705,6 +705,7 @@
if (args->flags & CLONE_VFORK) {
/* wait for the children to exit, ie. emulate vfork */
PROC_LOCK(p2);
+ p2->p_flag |= P_PPWAIT;
while (p2->p_flag & P_PPWAIT)
msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0);
PROC_UNLOCK(p2);
==== //depot/projects/linuxolator/src/sys/i386/linux/linux_machdep.c#3 (text+ko) ====
@@ -528,6 +528,7 @@
if (args->flags & CLONE_VFORK) {
/* wait for the children to exit, ie. emulate vfork */
PROC_LOCK(p2);
+ p2->p_flag |= P_PPWAIT;
while (p2->p_flag & P_PPWAIT)
msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0);
PROC_UNLOCK(p2);
More information about the p4-projects
mailing list