Fix another bug in stdout.c.
authorAndre Noll <maan@systemlinux.org>
Tue, 1 Apr 2008 21:24:29 +0000 (23:24 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 1 Apr 2008 21:24:29 +0000 (23:24 +0200)
This one caused the first chunk of data to be swallowed.

stdout.c

index b1e1bcb..87bf711 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 < 0)
+               if (!*sot->loaded && *sot->input_error < 0)
                        t->error = *sot->input_error;
                return;
        }