| 401 | } |
| 402 | |
| 403 | static void |
| 404 | install_sigchld (void) |
| 405 | { |
| 406 | struct sigaction sa; |
| 407 | sigemptyset (&sa.sa_mask); /* Allow concurrent calls to handler */ |
| 408 | sa.sa_handler = chld; |
| 409 | sa.sa_flags = SA_RESTART; /* Restart syscalls if possible, as that's |
| 410 | more likely to work cleanly. */ |
| 411 | |
| 412 | sigaction (SIGCHLD, &sa, NULL); |
| 413 | |
| 414 | /* We inherit the signal mask from our parent process, |
| 415 | so ensure SIGCHLD is not blocked. */ |
| 416 | unblock_signal (SIGCHLD); |
| 417 | } |
| 418 | |
| 419 | /* Filter out signals that were ignored. */ |
| 420 |
no test coverage detected