X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=file_write.c;h=d512df0598eab8d105c1145852c6738e27bd1752;hb=181beb316afad036ac01a778544c5dec0a8d51c7;hp=9837e810278ee220fce4a313d695db3b9772f3ad;hpb=b59e841036a107b52a0221e48d7e05f86da92979;p=paraslash.git diff --git a/file_write.c b/file_write.c index 9837e810..d512df05 100644 --- a/file_write.c +++ b/file_write.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2006 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2006 Andre Noll , see file COPYING. */ /** \file file_write.c simple output plugin for testing purposes */ @@ -115,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);