]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - gui.c
Hide implementation of para_fd_set().
[paraslash.git] / gui.c
diff --git a/gui.c b/gui.c
index 686fda3108e6d604b905d06176df3801d239807d..fc7bfaf4e5d362f2323b4b760777b4219f0dfab0 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -614,7 +614,7 @@ static void status_pre_select(struct sched *s, void *context)
        struct status_task *st = context;
 
        if (st->fd >= 0)
-               para_fd_set(st->fd, &s->rfds, &s->max_fileno);
+               sched_monitor_readfd(st->fd, s);
        if (task_get_notification(st->task) < 0)
                return sched_min_delay(s);
        if (st->fd < 0)
@@ -935,9 +935,9 @@ static void exec_pre_select(struct sched *s, void *context)
 {
        struct exec_task *et = context;
        if (exec_fds[0] >= 0)
-               para_fd_set(exec_fds[0], &s->rfds, &s->max_fileno);
+               sched_monitor_readfd(exec_fds[0], s);
        if (exec_fds[1] >= 0)
-               para_fd_set(exec_fds[1], &s->rfds, &s->max_fileno);
+               sched_monitor_readfd(exec_fds[1], s);
        if (task_get_notification(et->task) < 0)
                sched_min_delay(s);
 }
@@ -995,7 +995,7 @@ static int exec_post_select(__a_unused struct sched *s, void *context)
 static void input_pre_select(struct sched *s, __a_unused void *context)
 {
        if (exec_status() != EXEC_XCMD)
-               para_fd_set(STDIN_FILENO, &s->rfds, &s->max_fileno);
+               sched_monitor_readfd(STDIN_FILENO, s);
        if (window_update_needed())
                sched_min_delay(s);
 }