Only check signal event, single threading event shouldn't be reported.
This commit is contained in:
parent
077b71e0fa
commit
af64c19b3b
@ -721,7 +721,8 @@ kern_wait(struct thread *td, pid_t pid, int *status, int options,
|
||||
return (0);
|
||||
}
|
||||
mtx_lock_spin(&sched_lock);
|
||||
if (P_SHOULDSTOP(p) && p->p_suspcount == p->p_numthreads &&
|
||||
if ((p->p_flag & P_STOPPED_SIG) &&
|
||||
(p->p_suspcount == p->p_numthreads) &&
|
||||
(p->p_flag & P_WAITED) == 0 &&
|
||||
(p->p_flag & P_TRACED || options & WUNTRACED)) {
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user