Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
d41cdef9198e635270d30e82be939d4ea0cbce82
/
.
/
src
/
signal
/
siginterrupt.c
blob: 70063400325c0f74f82235ffc4b9440dd4e264f2 [
file
] [
log
] [
blame
]
#include
<signal.h>
int
siginterrupt
(
int
sig
,
int
flag
)
{
struct
sigaction sa
;
sigaction
(
sig
,
0
,
&
sa
);
if
(
flag
)
sa
.
sa_flags
&=
~
SA_RESTART
;
else
sa
.
sa_flags
|=
SA_RESTART
;
return
sigaction
(
sig
,
&
sa
,
0
);
}