MFP4 (106541): Fix the clone05 test in the LTP.
Submitted by: rdivacky
This commit is contained in:
parent
6dc0f7cde5
commit
7e5ad63262
@ -495,6 +495,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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user