From 5b9429adb78aeb5e98fa26bd9b2b3eef981e4c52 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 10 Mar 2011 10:59:50 -0500 Subject: [PATCH] make sigtimedwait a cancellation point --- src/signal/sigtimedwait.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #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; } -- 2.25.1