summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2003-02-27 02:05:19 +0000
committerJulian Elischer <julian@FreeBSD.org>2003-02-27 02:05:19 +0000
commitac2e4153278a07773d0ca8f9f5f5c1b41a3696b8 (patch)
tree91973dfb2c47deb06ea09f1614aa486db1bd95dd /sys/kern/kern_fork.c
parent7d33ae96778cdd85ab3a3e03bde4ec9da699bf30 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 19f506c1b5d3..65a3360854ab 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -289,7 +289,7 @@ fork1(td, flags, pages, procp)
return (0);
}
- if (p1->p_flag & P_KSES) {
+ if (p1->p_flag & P_THREADED) {
/*
* Idle the other threads for a second.
* Since the user space is copied, it must remain stable.
@@ -744,7 +744,7 @@ again:
/*
* If other threads are waiting, let them continue now
*/
- if (p1->p_flag & P_KSES) {
+ if (p1->p_flag & P_THREADED) {
PROC_LOCK(p1);
thread_single_end();
PROC_UNLOCK(p1);
@@ -758,7 +758,7 @@ again:
fail:
sx_xunlock(&allproc_lock);
uma_zfree(proc_zone, newproc);
- if (p1->p_flag & P_KSES) {
+ if (p1->p_flag & P_THREADED) {
PROC_LOCK(p1);
thread_single_end();
PROC_UNLOCK(p1);