]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - file_write.c
sched: Introduce sched_{read,write}_ok().
[paraslash.git] / file_write.c
index 9837e810278ee220fce4a313d695db3b9772f3ad..d512df0598eab8d105c1145852c6738e27bd1752 100644 (file)
@@ -1,8 +1,4 @@
-/*
- * Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>, 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);