From 29732c6fb7fcf7678de2db88cad7f64df588c095 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 13 Sep 2004 22:10:04 +0000 Subject: make some of these conditions apply equally to both threading systems. --- sys/kern/kern_fork.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/kern') 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); -- cgit v1.1