12345678910111213141516171819202122232425262728293031323334 |
- #define __need_NULL
- #include <stddef.h>
- #include <signal.h>
- #include <string.h>
- int sigignore (int sig)
- {
- struct sigaction act;
- memset(&act, 0, sizeof(act));
- act.sa_handler = SIG_IGN;
- return sigaction (sig, &act, NULL);
- }
|