.check_ambiguity = 0,
.print_errors = 1
};
- int afs_socket;
+ int ret, afs_socket;
valid_fd_012();
init_random_seed();
* forked off. Otherwise, para_server does not notice if afs dies before
* the SIGCHLD handler has been installed by init_signal_task() below.
*/
- if (signal(SIGCHLD, tmp_sigchld_handler) == SIG_ERR) {
- PARA_EMERG_LOG("failed to install temporary SIGCHLD handler\n");
+ ret = para_sigaction(SIGCHLD, tmp_sigchld_handler);
+ if (ret < 0) {
+ PARA_EMERG_LOG("SIGCHLD: %s\n", para_strerror(-ret));
exit(EXIT_FAILURE);
}
PARA_NOTICE_LOG("initializing the audio file selector\n");