diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-02-26 15:51:54 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-02-26 15:51:54 +0000 |
| commit | c90c9021e94dd95b34bb48c3f8bb29761379a8d8 (patch) | |
| tree | d89376ead0217f0b0f64e8d12308efc93860e35a /sys/kern/kern_sig.c | |
| parent | 34a839f1085b64b2c508f0ecba1749b930624796 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_sig.c')
| -rw-r--r-- | sys/kern/kern_sig.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index f4cf8ad05a59..7460c13caac9 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2585,7 +2585,6 @@ postsig(sig) sig_t action; ksiginfo_t ksi; sigset_t returnmask; - int code; KASSERT(sig != 0, ("postsig")); @@ -2653,10 +2652,7 @@ postsig(sig) ps->ps_sigact[_SIG_IDX(sig)] = SIG_DFL; } td->td_ru.ru_nsignals++; - if (p->p_sig != sig) { - code = 0; - } else { - code = p->p_code; + if (p->p_sig == sig) { p->p_code = 0; p->p_sig = 0; } |
