blob: 5ba05e129de1f7dd4203ff8f4ac928cb8b674ac3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#include <signal.h>
int sigignore(int sig)
{
struct sigaction sa;
sigemptyset(&sa.sa_mask);
sa.sa_handler = SIG_IGN;
sa.sa_flags = 0;
return sigaction(sig, &sa, 0);
}
|