projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
don't fail with EINTR in sigtimedwait
[musl]
/
src
/
signal
/
sigtimedwait.c
1
#include <signal.h>
2
#include <errno.h>
3
#include "syscall.h"
4
5
int sigtimedwait(const sigset_t *mask, siginfo_t *si, const struct timespec *timeout)
6
{
7
int ret;
8
do {
9
ret = syscall4(__NR_rt_sigtimedwait, (long)mask, (long)si, (long)timeout, SYSCALL_SIGSET_SIZE);
10
} while (ret<0 && errno==EINTR);
11
return ret;
12
}