about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/signal/sigtimedwait.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/signal/sigtimedwait.c b/src/signal/sigtimedwait.c
index 0a7c5eac..93f31a71 100644
--- a/src/signal/sigtimedwait.c
+++ b/src/signal/sigtimedwait.c
@@ -1,12 +1,15 @@
 #include <signal.h>
 #include <errno.h>
 #include "syscall.h"
+#include "libc.h"
 
 int sigtimedwait(const sigset_t *mask, siginfo_t *si, const struct timespec *timeout)
 {
 	int ret;
+	CANCELPT_BEGIN;
 	do {
 		ret = syscall4(__NR_rt_sigtimedwait, (long)mask, (long)si, (long)timeout, SYSCALL_SIGSET_SIZE);
 	} while (ret<0 && errno==EINTR);
+	CANCELPT_END;
 	return ret;
 }