projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
implement hcreate_r, hdestroy_r and hsearch_r
[oweals/musl.git]
/
src
/
signal
/
sighold.c
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
}