make sigtimedwait a cancellation point

This commit is contained in:
Rich Felker 2011-03-10 10:59:50 -05:00
parent 0a949ebdf0
commit 5b9429adb7
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}