X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stdout.c;h=b1e1bcb6f1edb0f986b4bf840cf8ef3ee57b3c55;hb=5ab853b37a9fae7cf93ca809bf98d443440b6184;hp=137030ef272ada72a6f79012f9d65be4cc9eb709;hpb=335730538150250f32c0df0b184fb494e2bb0df3;p=paraslash.git diff --git a/stdout.c b/stdout.c index 137030ef..b1e1bcb6 100644 --- 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; } @@ -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) {