From: Andre Noll Date: Sun, 23 Sep 2007 20:38:54 +0000 (+0200) Subject: afs.c: Avoid noisy log message. X-Git-Tag: v0.3.0~364 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=2d8f0c21ac8735fc06d1aa88e7873614392e3042;p=paraslash.git afs.c: Avoid noisy log message. 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. --- diff --git a/afs.c b/afs.c index e109d6c1..a2194f3e 100644 --- a/afs.c +++ b/afs.c @@ -556,10 +556,10 @@ static void signal_post_select(struct sched *s, struct task *t) 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(); }