]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdout.c
sched: Introduce sched_{read,write}_ok().
[paraslash.git] / stdout.c
index 9fc20ed0253d91f9ecb3fe3591843feb48b82eb3..71c45f69518b349d07143823003dedac9a0f5e2f 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -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 stdout.c Functions that deal with writing to stdout. */
 
@@ -44,7 +40,7 @@ static int stdout_post_select(struct sched *s, void *context)
                goto out;
        if (ret == 0)
                return 0;
-       if (!FD_ISSET(STDOUT_FILENO, &s->wfds))
+       if (!sched_write_ok(STDOUT_FILENO, s))
                return 0;
 
        if (sot->must_set_nonblock_flag) {