123456789101112131415161718192021222324252627282930313233 |
- #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);
- }
|