From 2d8f0c21ac8735fc06d1aa88e7873614392e3042 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 23 Sep 2007 22:38:54 +0200 Subject: [PATCH] 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. --- afs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5