projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b9429a
)
make sigsuspend a cancellation point
author
Rich Felker
<dalias@aerifal.cx>
Thu, 10 Mar 2011 16:01:11 +0000
(11:01 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 10 Mar 2011 16:01:11 +0000
(11:01 -0500)
src/signal/sigsuspend.c
patch
|
blob
|
history
diff --git
a/src/signal/sigsuspend.c
b/src/signal/sigsuspend.c
index 7ce526c4dd0408bcd819f69c556a580e51d4c753..0806288ce5754a164a355525d9677f893ca43ff8 100644
(file)
--- a/
src/signal/sigsuspend.c
+++ b/
src/signal/sigsuspend.c
@@
-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;
}