There's no need to catch this signal in server.c as it is unly used to notify
its children. So just ignore it.
signal(SIGINT, SIG_DFL);
signal(SIGTERM, SIG_DFL);
signal(SIGHUP, SIG_DFL);
- signal(SIGUSR1, SIG_IGN);
/* we need a blocking fd here as recv() might return EAGAIN otherwise. */
ret = mark_fd_blocking(fd);
ret += para_install_sighandler(SIGTERM);
ret += para_install_sighandler(SIGHUP);
ret += para_install_sighandler(SIGCHLD);
- ret += para_install_sighandler(SIGUSR1);
signal(SIGPIPE, SIG_IGN);
- if (ret != 5) {
+ signal(SIGUSR1, SIG_IGN);
+ if (ret != 4) {
PARA_EMERG_LOG("%s", "could not install signal handlers\n");
exit(EXIT_FAILURE);
}