123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <errno.h>
- #define __need_NULL
- #include <stddef.h>
- #include <signal.h>
- #include <string.h> /* For the real memset prototype. */
- int sigignore (int sig)
- {
- struct sigaction act;
- act.sa_handler = SIG_IGN;
- if (__sigemptyset (&act.sa_mask) < 0)
- return -1;
- act.sa_flags = 0;
- return sigaction (sig, &act, NULL);
- }
|