]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 aebc063ff28cabf2ec92966fa589dbf57c904d7e..c17a4ae444fad58f597c1f886c0c573d463cd88b 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: