make sigsuspend a cancellation point
This commit is contained in:
parent
5b9429adb7
commit
0f8cc94d68
1 changed files with 6 additions and 1 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "syscall.h"
|
#include "syscall.h"
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
int sigsuspend(const sigset_t *mask)
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue