Sign in
cobalt
/
cobalt
/
07081467c3d00b04a6a1162e0566a5a8b9cfe2d5
/
.
/
third_party
/
musl
/
src
/
signal
/
sigignore.c
blob: 5ba05e129de1f7dd4203ff8f4ac928cb8b674ac3 [
file
] [
log
] [
blame
]
#include
<signal.h>
int
sigignore
(
int
sig
)
{
struct
sigaction sa
;
sigemptyset
(&
sa
.
sa_mask
);
sa
.
sa_handler
=
SIG_IGN
;
sa
.
sa_flags
=
0
;
return
sigaction
(
sig
,
&
sa
,
0
);
}