]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - sync_filter.c
sched: Introduce sched_{read,write}_ok().
[paraslash.git] / sync_filter.c
index 8e9ff2c5de79a6385b6472453f3dec417b9ac5cc..3877c13d1d932bc566303299565d87d3e6c948e6 100644 (file)
@@ -324,7 +324,7 @@ static int sync_post_select(__a_unused struct sched *s, void *context)
                }
                ctx->ping_sent = true;
        }
-       if (FD_ISSET(ctx->listen_fd, &s->rfds)) {
+       if (sched_read_ok(ctx->listen_fd, s)) {
                char c;
                for (;;) {
                        struct sockaddr src_addr;