PERFORCE change 112893 for review

Roman Divacky rdivacky at FreeBSD.org
Sun Jan 14 13:53:05 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=112893

Change 112893 by rdivacky at rdivacky_witten on 2007/01/14 13:52:42

	Make linux_vfork() actually work. This enables make to work again
	with 2.6

Affected files ...

.. //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_machdep.c#19 edit
.. //depot/projects/linuxolator/src/sys/i386/linux/linux_machdep.c#14 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/amd64/linux32/linux32_machdep.c#19 (text+ko) ====

@@ -516,6 +516,7 @@
 		return (error);
 	/* 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#14 (text+ko) ====

@@ -341,6 +341,7 @@
 		return (error);
 	/* 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