diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-03-09 08:31:51 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-03-09 08:31:51 +0000 |
commit | a84244a660efd4d774dbb65a4c4082f80ea9cd02 (patch) | |
tree | 41014491d4ca97780fcb68284ed4241f3b82ab48 /sys/kern/kern_sig.c | |
parent | b2cbc78f68a8027d5edbb0244fd6f58ec7968300 (diff) | |
download | FreeBSD-src-a84244a660efd4d774dbb65a4c4082f80ea9cd02.zip FreeBSD-src-a84244a660efd4d774dbb65a4c4082f80ea9cd02.tar.gz |
Remove _STOPEVENT call, it is already called in issignal, simplify
code for SIGKILL signal.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 40c4110..7e919c8 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1303,13 +1303,8 @@ out: ktrpsig(sig, action, &td->td_sigmask, 0); } #endif - _STOPEVENT(p, S_SIG, sig); - - if (sig == SIGKILL) { - p->p_code = ksi->ksi_code; - p->p_sig = sig; + if (sig == SIGKILL) sigexit(td, sig); - } } PROC_UNLOCK(p); return (error); |