summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-09-13 22:10:04 +0000
committerjulian <julian@FreeBSD.org>2004-09-13 22:10:04 +0000
commit29732c6fb7fcf7678de2db88cad7f64df588c095 (patch)
tree5353043d424bf51b31ff70c95e0291d1c848e428 /sys/kern
parent83c4913be174845c080c5ebb0ccf40b7f29b6773 (diff)
downloadFreeBSD-src-29732c6fb7fcf7678de2db88cad7f64df588c095.zip
FreeBSD-src-29732c6fb7fcf7678de2db88cad7f64df588c095.tar.gz
make some of these conditions apply equally to both threading systems.
Diffstat (limited to 'sys/kern')
-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 eeef444..714a1af 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -256,7 +256,7 @@ fork1(td, flags, pages, procp)
* other side with the expectation that the process is about to
* exec.
*/
- if (p1->p_flag & P_SA) {
+ if (p1->p_flag & P_HADTHREADS) {
/*
* Idle the other threads for a second.
* Since the user space is copied, it must remain stable.
@@ -727,7 +727,7 @@ again:
/*
* If other threads are waiting, let them continue now.
*/
- if (p1->p_flag & P_SA) {
+ if (p1->p_flag & P_HADTHREADS) {
PROC_LOCK(p1);
thread_single_end();
PROC_UNLOCK(p1);
@@ -748,7 +748,7 @@ fail:
mac_destroy_proc(newproc);
#endif
uma_zfree(proc_zone, newproc);
- if (p1->p_flag & P_SA) {
+ if (p1->p_flag & P_HADTHREADS) {
PROC_LOCK(p1);
thread_single_end();
PROC_UNLOCK(p1);
OpenPOWER on IntegriCloud