Messages in this thread Patch in this message | | | Date | Mon, 28 Jun 2004 14:34:25 -0700 (PDT) | From | Davide Libenzi <> | Subject | [patch] signal handler defaulting fix ... |
| |
Following up from the other thread (2.6.x signal handler bug) this bring 2.4 behaviour in 2.6.
Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
- Davide
--- a/kernel/signal.c 2004-06-28 14:28:51.000000000 -0700 +++ b/kernel/signal.c 2004-06-28 14:29:31.000000000 -0700 @@ -820,8 +820,9 @@ int ret; spin_lock_irqsave(&t->sighand->siglock, flags); - if (sigismember(&t->blocked, sig) || t->sighand->action[sig-1].sa.sa_handler == SIG_IGN) { + if (t->sighand->action[sig-1].sa.sa_handler == SIG_IGN) t->sighand->action[sig-1].sa.sa_handler = SIG_DFL; + if (sigismember(&t->blocked, sig)) { sigdelset(&t->blocked, sig); recalc_sigpending_tsk(t); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |