From af64c19b3b7026bb23b69b1b85c5614a83aba834 Mon Sep 17 00:00:00 2001 From: davidxu Date: Thu, 5 May 2005 06:42:02 +0000 Subject: [PATCH] Only check signal event, single threading event shouldn't be reported. --- sys/kern/kern_exit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 8fb5d495bc11..d6804999b395 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -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);