Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
signal
/
sighold.c
blob: cfa2306c12992f99122d1e18c9fc47ab235c0023 [
file
] [
log
] [
blame
]
#include
<signal.h>
int
sighold
(
int
sig
)
{
sigset_t
mask
;
sigemptyset
(&
mask
);
if
(
sigaddset
(&
mask
,
sig
)
<
0
)
return
-
1
;
return
sigprocmask
(
SIG_BLOCK
,
&
mask
,
0
);
}