make some of these conditions apply equally to both threading systems.
This commit is contained in:
parent
0c1691334a
commit
a3aa559270
@ -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 @@ fork1(td, flags, pages, procp)
|
||||
/*
|
||||
* 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 @@ fork1(td, flags, pages, procp)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user