mirror of
git://git.musl-libc.org/musl
synced 2024-12-14 18:55:23 +00:00
make sigsuspend a cancellation point
This commit is contained in:
parent
5b9429adb7
commit
0f8cc94d68
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user