From d96cfeae0c6de51fa4e2dc9d96413b45a8076c48 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 16 Dec 2000 21:03:48 +0000 Subject: [PATCH] Fix a typo that allowed signals caused by traps to be delivered to the process when said signal is masked. PR: 23457 Submitted by: Yasuhiko Watanabe --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index c49c3366af8..c6daeede402 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -999,7 +999,7 @@ trapsignal(p, sig, code) register struct sigacts *ps = p->p_sigacts; if ((p->p_flag & P_TRACED) == 0 && SIGISMEMBER(p->p_sigcatch, sig) && - SIGISMEMBER(p->p_sigmask, sig)) { + !SIGISMEMBER(p->p_sigmask, sig)) { p->p_stats->p_ru.ru_nsignals++; #ifdef KTRACE if (KTRPOINT(p, KTR_PSIG))