blob: 78bd747413d67cbf50aa0395b2b8bd58edc01fd1 (
plain) (
tree)
|
|
#include <signal.h>
#include <stddef.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, NULL);
}
|