]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - file_write.c
sched: Introduce sched_{read,write}_ok().
[paraslash.git] / file_write.c
index 9a5ed5d7fab7dc01fe46fa5ecab6940ea3a28828..d512df0598eab8d105c1145852c6738e27bd1752 100644 (file)
@@ -111,7 +111,7 @@ static int file_write_post_select(__a_unused struct sched *s, void *context)
                ret = prepare_output_file(wn);
                goto out;
        }
-       if (!FD_ISSET(pfwd->fd, &s->wfds))
+       if (!sched_write_ok(pfwd->fd, s))
                return 0;
        bytes = btr_next_buffer(btrn, &buf);
        assert(bytes > 0);