From ac3208b6651ae6e33d0dc8b6c408cc106cb613da Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 12 Apr 2008 16:23:42 +0200 Subject: [PATCH] audiod.c: Fix signal number in log output. --- audiod.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/audiod.c b/audiod.c index aebc063f..c17a4ae4 100644 --- a/audiod.c +++ b/audiod.c @@ -757,13 +757,12 @@ static void signal_pre_select(struct sched *s, struct task *t) static void signal_post_select(struct sched *s, struct task *t) { struct signal_task *st = container_of(t, struct signal_task, task); - int signum; if (!FD_ISSET(st->fd, &s->rfds)) return; - signum = para_next_signal(); - switch (signum) { + st->signum = para_next_signal(); + switch (st->signum) { case SIGINT: case SIGTERM: case SIGHUP: -- 2.39.5