audiod.c: Fix signal number in log output.
authorAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 14:23:42 +0000 (16:23 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 14:23:42 +0000 (16:23 +0200)
audiod.c

index aebc063..c17a4ae 100644 (file)
--- 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: