diff options
Diffstat (limited to 'src/signal')
-rw-r--r-- | src/signal/sigsuspend.c | 7 | ||||
-rw-r--r-- | src/signal/sigtimedwait.c | 8 |
2 files changed, 3 insertions, 12 deletions
diff --git a/src/signal/sigsuspend.c b/src/signal/sigsuspend.c index cec5ddce..cd3a7b59 100644 --- a/src/signal/sigsuspend.c +++ b/src/signal/sigsuspend.c @@ -4,10 +4,5 @@ int sigsuspend(const sigset_t *mask) { - int ret; - CANCELPT_BEGIN; - ret = syscall(SYS_rt_sigsuspend, mask, 8); - if (ret<0) CANCELPT_TRY; - CANCELPT_END; - return ret; + return syscall_cp(SYS_rt_sigsuspend, mask, 8); } diff --git a/src/signal/sigtimedwait.c b/src/signal/sigtimedwait.c index 1694cbe1..7eea58ab 100644 --- a/src/signal/sigtimedwait.c +++ b/src/signal/sigtimedwait.c @@ -6,11 +6,7 @@ int sigtimedwait(const sigset_t *mask, siginfo_t *si, const struct timespec *timeout) { int ret; - CANCELPT_BEGIN; - do { - ret = syscall(SYS_rt_sigtimedwait, mask, si, timeout, 8); - if (ret<0) CANCELPT_TRY; - } while (ret<0 && errno==EINTR); - CANCELPT_END; + do ret = syscall_cp(SYS_rt_sigtimedwait, mask, si, timeout, 8); + while (ret<0 && errno==EINTR); return ret; } |