From 7e5ad63262bc5c96daca198cf6a43b428b26ee12 Mon Sep 17 00:00:00 2001 From: netchild Date: Sun, 15 Oct 2006 13:25:23 +0000 Subject: MFP4 (106541): Fix the clone05 test in the LTP. Submitted by: rdivacky --- sys/i386/linux/linux_machdep.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/i386') diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 849170b..be8fce5 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -340,6 +340,7 @@ linux_vfork(struct thread *td, struct linux_vfork_args *args) 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); -- cgit v1.1