para_server regularly sends SIGUSR1 to all of its children. afs
just ignores that signal, so only print a log message if a signal
different from SIGUSR1 was caught.
if (!FD_ISSET(st->fd, &s->rfds))
return;
st->signum = para_next_signal();
- PARA_NOTICE_LOG("caught signal %d\n", st->signum);
t->ret = 1;
if (st->signum == SIGUSR1)
return; /* ignore SIGUSR1 */
+ PARA_NOTICE_LOG("caught signal %d\n", st->signum);
t->ret = -E_SIGNAL_CAUGHT;
unregister_tasks();
}