summaryrefslogtreecommitdiff
path: root/sys/amd64/linux32
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-02-18 16:11:39 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-02-18 16:11:39 +0000
commit99b7f1a10b2e41264c8a721884ee17bdb08c0604 (patch)
treeb60a1052499beaf604c030f9af060fb15c563a15 /sys/amd64/linux32
parent99f41b91c39318205e116f5b71013b5b5696b1fb (diff)
Notes
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r--sys/amd64/linux32/linux32_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
index c8869e2e79e5..eb91623cfd84 100644
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -560,7 +560,7 @@ linux_vfork(struct thread *td, struct linux_vfork_args *args)
/* wait for the children to exit, ie. emulate vfork */
PROC_LOCK(p2);
while (p2->p_flag & P_PPWAIT)
- msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0);
+ cv_wait(&p2->p_pwait, &p2->p_mtx);
PROC_UNLOCK(p2);
return (0);
@@ -749,7 +749,7 @@ linux_clone(struct thread *td, struct linux_clone_args *args)
/* wait for the children to exit, ie. emulate vfork */
PROC_LOCK(p2);
while (p2->p_flag & P_PPWAIT)
- msleep(td->td_proc, &p2->p_mtx, PWAIT, "ppwait", 0);
+ cv_wait(&p2->p_pwait, &p2->p_mtx);
PROC_UNLOCK(p2);
}