summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
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 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