make sigsuspend a cancellation point

This commit is contained in:
Rich Felker 2011-03-10 11:01:11 -05:00
parent 5b9429adb7
commit 0f8cc94d68
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,12 @@
#include <signal.h>
#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;
}