From: Rich Felker Date: Thu, 10 Mar 2011 16:01:11 +0000 (-0500) Subject: make sigsuspend a cancellation point X-Git-Tag: v0.7.0~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f8cc94d68a54893fc2aee90503735045618d8ae;p=oweals%2Fmusl.git make sigsuspend a cancellation point --- 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; }