mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
192 B
11 lines
192 B
#include <signal.h>
|
|
#include <stdlib.h>
|
|
|
|
int sighold(int sig)
|
|
{
|
|
sigset_t mask;
|
|
|
|
sigemptyset(&mask);
|
|
if (sigaddset(&mask, sig) < 0) return -1;
|
|
return sigprocmask(SIG_BLOCK, &mask, NULL);
|
|
}
|
|
|