Install a handler for SIGCHLD. */
| 53 | |
| 54 | /** Install a handler for SIGCHLD. */ |
| 55 | void signalInit() |
| 56 | { |
| 57 | struct sigaction action; |
| 58 | action.sa_handler = sigchldHandler; |
| 59 | sigemptyset(&action.sa_mask); |
| 60 | action.sa_flags = SA_RESTART; |
| 61 | sigaction(SIGCHLD, &action, NULL); |
| 62 | } |
no test coverage detected