Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 2006 09:39:12 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 106541 for review
Message-ID:  <200609230939.k8N9dCgk043312@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106541

Change 106541 by rdivacky@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);



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