afs: Use nonblocking API for server commands.
[paraslash.git] / audiod.c
index 99b4c7d..012f634 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -980,15 +980,11 @@ static void signal_pre_select(struct sched *s, struct task *t)
        para_fd_set(st->fd, &s->rfds, &s->max_fileno);
 }
 
-static void signal_post_select(struct sched *s, struct task *t)
+static void signal_post_select(struct sched *s, __a_unused 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();
+       signum = para_next_signal(&s->rfds);
        switch (signum) {
        case SIGINT:
        case SIGTERM: