Date: Sun, 14 Jan 2007 13:53:04 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 112893 for review Message-ID: <200701141353.l0EDr4Bn085459@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=112893 Change 112893 by rdivacky@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701141353.l0EDr4Bn085459>