Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
signal
/
sigwait.c
blob: c8822eea49837bfc732ca38a330af89bc8582288 [
file
] [
log
] [
blame
]
#include
<signal.h>
int
sigwait
(
const
sigset_t
*
restrict mask
,
int
*
restrict sig
)
{
siginfo_t
si
;
if
(
sigtimedwait
(
mask
,
&
si
,
0
)
<
0
)
return
-
1
;
*
sig
=
si
.
si_signo
;
return
0
;
}