ipc: prefer SYS_ipc when it is defined
[musl.git] / src / signal / sighold.c
blobcfa2306c12992f99122d1e18c9fc47ab235c0023
1 #include <signal.h>
3 int sighold(int sig)
5 sigset_t mask;
7 sigemptyset(&mask);
8 if (sigaddset(&mask, sig) < 0) return -1;
9 return sigprocmask(SIG_BLOCK, &mask, 0);