blob: 98dff61e22da7f51d623b26410fe307544457ccf (
plain) (
tree)
|
|
#include <signal.h>
#include <stdlib.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);
}
|