summaryrefslogtreecommitdiff
path: root/src/signal/sigsuspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/sigsuspend.c')
-rw-r--r--src/signal/sigsuspend.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/signal/sigsuspend.c b/src/signal/sigsuspend.c
index 7ce526c4..0806288c 100644
--- a/src/signal/sigsuspend.c
+++ b/src/signal/sigsuspend.c
@@ -1,7 +1,12 @@
#include <signal.h>
#include "syscall.h"
+#include "libc.h"
int sigsuspend(const sigset_t *mask)
{
- return syscall2(__NR_rt_sigsuspend, (long)mask, SYSCALL_SIGSET_SIZE);
+ int ret;
+ CANCELPT_BEGIN;
+ ret = syscall2(__NR_rt_sigsuspend, (long)mask, SYSCALL_SIGSET_SIZE);
+ CANCELPT_END;
+ return ret;
}