]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - play.c
Switch from select(2) to poll(2).
[paraslash.git] / play.c
diff --git a/play.c b/play.c
index 48da675ccc037f11bf9b044f232a1ecc83cc390e..66383ebe0b8cb6a742801cfd33cd08155ee857b1 100644 (file)
--- a/play.c
+++ b/play.c
@@ -117,7 +117,7 @@ INIT_STDERR_LOGGING(loglevel);
 
 char *stat_item_values[NUM_STAT_ITEMS] = {NULL};
 
-static struct sched sched = {.max_fileno = 0};
+static struct sched sched;
 static struct play_task play_task, *pt = &play_task;
 
 #define AFH_RECV_CMD (lls_cmd(LSG_RECV_CMD_CMD_AFH, recv_cmd_suite))
@@ -1075,7 +1075,7 @@ static void session_open(void)
        sigemptyset(&act.sa_mask);
        act.sa_flags = 0;
        sigaction(SIGWINCH, &act, NULL);
-       sched.select_function = i9e_select;
+       sched.poll_function = i9e_poll;
 
        ici.bound_keyseqs = get_mapped_keyseqs();
        pt->btrn = ici.producer = btr_new_node(&(struct btr_node_description)