From 0f8cc94d68a54893fc2aee90503735045618d8ae Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 10 Mar 2011 11:01:11 -0500 Subject: [PATCH] make sigsuspend a cancellation point --- src/signal/sigsuspend.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 #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; } -- 2.25.1