]> git.tue.mpg.de Git - paraslash.git/commitdiff
audiod: Switch command_task to the alternative post select method.
authorAndre Noll <maan@systemlinux.org>
Sun, 31 Mar 2013 16:44:57 +0000 (16:44 +0000)
committerAndre Noll <maan@systemlinux.org>
Tue, 30 Apr 2013 12:12:46 +0000 (14:12 +0200)
audiod.c

index 91122308f8dada77a3a73121968dca47305d7fc7..f412dc6d3b5e30ed5514eaacd6f6c6add0e419cc 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1032,7 +1032,7 @@ static void command_pre_select(struct sched *s, struct task *t)
        para_fd_set(ct->fd, &s->rfds, &s->max_fileno);
 }
 
-static void command_post_select(struct sched *s, struct task *t)
+static int command_post_select(struct sched *s, struct task *t)
 {
        int ret;
        struct command_task *ct = container_of(t, struct command_task, task);
@@ -1049,13 +1049,14 @@ static void command_post_select(struct sched *s, struct task *t)
        if (ret < 0)
                PARA_ERROR_LOG("%s\n", para_strerror(-ret));
        audiod_status_dump();
+       return 0;
 }
 
 static void init_command_task(struct command_task *ct)
 {
        ct->task.pre_select = command_pre_select;
-       ct->task.post_select = command_post_select;
-       ct->task.new_post_select = NULL;
+       ct->task.new_post_select = command_post_select;
+       ct->task.post_select = NULL;
        ct->task.error = 0;
        ct->fd = audiod_get_socket(); /* doesn't return on errors */
        sprintf(ct->task.status, "command task");