diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-05-05 06:42:02 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-05-05 06:42:02 +0000 |
commit | af64c19b3b7026bb23b69b1b85c5614a83aba834 (patch) | |
tree | 96ca69ae955b22014cc35a40704727a6a9ece63d /sys/kern/kern_exit.c | |
parent | 077b71e0fa3ad5840a2b555ba5e3a6a921112309 (diff) | |
download | FreeBSD-src-af64c19b3b7026bb23b69b1b85c5614a83aba834.zip FreeBSD-src-af64c19b3b7026bb23b69b1b85c5614a83aba834.tar.gz |
Only check signal event, single threading event shouldn't be reported.
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 8fb5d49..d680499 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -721,7 +721,8 @@ loop: 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); |