X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=file_write.c;h=d512df0598eab8d105c1145852c6738e27bd1752;hb=181beb316afad036ac01a778544c5dec0a8d51c7;hp=9a5ed5d7fab7dc01fe46fa5ecab6940ea3a28828;hpb=767a4a54c967bc4b80bd14d02e89fe91acd848dd;p=paraslash.git diff --git a/file_write.c b/file_write.c index 9a5ed5d7..d512df05 100644 --- a/file_write.c +++ b/file_write.c @@ -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);