projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
src
/
signal
/
sigwait.c
1
#include <signal.h>
2
#include <stddef.h>
3
4
int sigwait(const sigset_t *mask, int *sig)
5
{
6
siginfo_t si;
7
if (sigtimedwait(mask, &si, NULL) < 0)
8
return -1;
9
*sig = si.si_signo;
10
return 0;
11
}