Only check signal event, single threading event shouldn't be reported.

This commit is contained in:
davidxu 2005-05-05 06:42:02 +00:00
parent 077b71e0fa
commit af64c19b3b

View File

@ -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);