summaryrefslogtreecommitdiff
path: root/libc/signal/sigwait.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/signal/sigwait.c')
-rw-r--r--libc/signal/sigwait.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c
index 64a889f7b..bed7f979a 100644
--- a/libc/signal/sigwait.c
+++ b/libc/signal/sigwait.c
@@ -74,6 +74,8 @@ int __sigwait (const sigset_t *set, int *sig)
__sigdelset (&tmp_mask, this);
/* Register temporary action handler. */
+ /* In Linux (as of 2.6.25), fails only if sig is SIGKILL or SIGSTOP */
+ /* (so, will it work correctly if set has, say, SIGSTOP?) */
if (sigaction (this, &action, &saved[this]) != 0)
goto restore_handler;
}