From a7f2d19821d3251298364b8a45d5c5f7bf9d5baa Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 31 Mar 2013 14:11:59 +0000 Subject: [PATCH] audiod: Switch signal task to the alternative post select method. --- audiod.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audiod.c b/audiod.c index a94a6aca..41be3c4f 100644 --- a/audiod.c +++ b/audiod.c @@ -1003,7 +1003,7 @@ 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, __a_unused struct task *t) +static int signal_post_select(struct sched *s, __a_unused struct task *t) { int signum; @@ -1015,12 +1015,14 @@ static void signal_post_select(struct sched *s, __a_unused struct task *t) PARA_EMERG_LOG("terminating on signal %d\n", signum); clean_exit(EXIT_FAILURE, "caught deadly signal"); } + return 0; } static void signal_setup_default(struct signal_task *st) { st->task.pre_select = signal_pre_select; - st->task.post_select = signal_post_select; + st->task.new_post_select = signal_post_select; + st->task.post_select = NULL; sprintf(st->task.status, "signal task"); } -- 2.39.5