| 5806 | } |
| 5807 | |
| 5808 | void removeSignalHandlers(void) { |
| 5809 | struct sigaction act; |
| 5810 | sigemptyset(&act.sa_mask); |
| 5811 | act.sa_flags = SA_NODEFER | SA_RESETHAND; |
| 5812 | act.sa_handler = SIG_DFL; |
| 5813 | sigaction(SIGSEGV, &act, NULL); |
| 5814 | sigaction(SIGBUS, &act, NULL); |
| 5815 | sigaction(SIGFPE, &act, NULL); |
| 5816 | sigaction(SIGILL, &act, NULL); |
| 5817 | sigaction(SIGABRT, &act, NULL); |
| 5818 | } |
| 5819 | |
| 5820 | /* This is the signal handler for children process. It is currently useful |
| 5821 | * in order to track the SIGUSR1, that we send to a child in order to terminate |
no test coverage detected