Fix a bug in stdout.c.
[paraslash.git] / stdout.c
index ebc1cb9..b1e1bcb 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -62,7 +62,7 @@ static void stdout_post_select(struct sched *s, struct task *t)
 
        t->error = 0;
        if (!sot->check_fd) {
-               if (*sot->input_error)
+               if (*sot->input_error < 0)
                        t->error = *sot->input_error;
                return;
        }