diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-10-03 13:23:49 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-10-03 13:23:49 +0000 |
commit | 33faeb8a738772e977acaac5911d22b481615a4c (patch) | |
tree | d15e79ceeb39192349e950a62f5d6b5306afa2d8 | |
parent | de5d72d10156aab5c292b9a71ef1ec9cd9e29f57 (diff) | |
download | FreeBSD-src-33faeb8a738772e977acaac5911d22b481615a4c.zip FreeBSD-src-33faeb8a738772e977acaac5911d22b481615a4c.tar.gz |
Don't bother to turn off other P_STOPPED bits for SIGKILL, doing
so would cause kernel to produce an unkillable process in some cases,
especially, P_STOPPED_SINGLE has a singling thread, turning off the
bit would mess the state.
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 4fcf79e..6bfaabf 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1812,7 +1812,7 @@ do_tdsignal(struct thread *td, int sig, sigtarget_t target) * It will die elsewhere. * All threads must be restarted. */ - p->p_flag &= ~P_STOPPED; + p->p_flag &= ~P_STOPPED_SIG; goto runfast; } |