summaryrefslogtreecommitdiffstats
path: root/libc/signal/sysv_signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/signal/sysv_signal.c')
-rw-r--r--libc/signal/sysv_signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/signal/sysv_signal.c b/libc/signal/sysv_signal.c
index f573482f9..118094b27 100644
--- a/libc/signal/sysv_signal.c
+++ b/libc/signal/sysv_signal.c
@@ -49,6 +49,7 @@ __sighandler_t __sysv_signal (int sig, __sighandler_t handler)
act.sa_handler = handler;
__sigemptyset (&act.sa_mask);
act.sa_flags = (SA_ONESHOT | SA_NOMASK | SA_INTERRUPT) & ~SA_RESTART;
+ /* In Linux (as of 2.6.25), fails only if sig is SIGKILL or SIGSTOP */
if (sigaction (sig, &act, &oact) < 0)
return SIG_ERR;