filter_chain.c: Cosmetics.
[paraslash.git] / stdout.c
index 137030ef272ada72a6f79012f9d65be4cc9eb709..87bf711f0d7a3794b7a6539c698a44457e984c28 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->loaded && *sot->input_error < 0)
                        t->error = *sot->input_error;
                return;
        }
@@ -84,8 +84,7 @@ static void stdout_post_select(struct sched *s, struct task *t)
  * \param sot The stdout task structure.
  *
  * This fills in the pre/post select function poinzters of the task structure
- * given by \a sot. It also sets up a default error handler which unregisters
- * the task on errors and clears the eof flag of \a sot.
+ * given by \a sot.
  */
 void stdout_set_defaults(struct stdout_task *sot)
 {