summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/signal/sigpause.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/signal/sigpause.c b/src/signal/sigpause.c
index 263c00f5..6c0f05df 100644
--- a/src/signal/sigpause.c
+++ b/src/signal/sigpause.c
@@ -4,8 +4,7 @@
int sigpause(int sig)
{
sigset_t mask;
-
- if (sigprocmask(0, NULL, &mask) < 0 || sigdelset(&mask, sig) < 0)
- return -1;
+ sigprocmask(0, 0, &mask);
+ sigdelset(&mask, sig);
return sigsuspend(&mask);
}