summaryrefslogtreecommitdiff
path: root/libc/signal/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/signal/signal.c')
-rw-r--r--libc/signal/signal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/signal/signal.c b/libc/signal/signal.c
index 0ed281ab1..f3dfa33fc 100644
--- a/libc/signal/signal.c
+++ b/libc/signal/signal.c
@@ -45,6 +45,7 @@ __bsd_signal (int sig, __sighandler_t handler)
__sigemptyset (&act.sa_mask);
__sigaddset (&act.sa_mask, sig);
act.sa_flags = __sigismember (&_sigintr, sig) ? 0 : 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;