repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ipc: prefer SYS_ipc when it is defined
[musl.git]
/
src
/
signal
/
sighold.c
blob
cfa2306c12992f99122d1e18c9fc47ab235c0023
1
#include <signal.h>
2
3
int
sighold
(
int
sig
)
4
{
5
sigset_t mask
;
6
7
sigemptyset
(&
mask
);
8
if
(
sigaddset
(&
mask
,
sig
) <
0
)
return
-
1
;
9
return
sigprocmask
(
SIG_BLOCK
, &
mask
,
0
);
10
}