afs.c: Avoid noisy log message.
authorAndre Noll <maan@systemlinux.org>
Sun, 23 Sep 2007 20:38:54 +0000 (22:38 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 23 Sep 2007 20:38:54 +0000 (22:38 +0200)
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.

afs.c

diff --git a/afs.c b/afs.c
index e109d6c..a2194f3 100644 (file)
--- 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();
 }