projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use rt_sigprocmask, not legacy sigprocmask, syscall in pthread exit code
[oweals/musl.git]
/
src
/
signal
/
sigignore.c
1
#include <signal.h>
2
#include <stdlib.h>
3
4
int sigignore(int sig)
5
{
6
struct sigaction sa;
7
8
sigemptyset(&sa.sa_mask);
9
sa.sa_handler = SIG_IGN;
10
sa.sa_flags = 0;
11
return sigaction(sig, &sa, NULL);
12
}