X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=stdin.c;h=299c326e589ef5e00cc7d8279cacce2db5ef6d33;hb=148c7c722fd5795228f586b6ef8d953662b68224;hp=6b9c80988b365c76fe77e8a470004e2398739d5f;hpb=3c5c2ebfc2d651f2f77d0df89cbb58a2068bcad0;p=paraslash.git diff --git a/stdin.c b/stdin.c index 6b9c8098..299c326e 100644 --- a/stdin.c +++ b/stdin.c @@ -31,10 +31,7 @@ void stdin_post_select(struct sched *s, struct task *t) sit->loaded += ret; t->ret = ret; } else - t->ret = 0; - if (ret <= 0) + t->ret = -E_STDIN_EOF; + if (t->ret < 0) sit->eof = 1; - sprintf(t->status, - "%p stdin reader: loaded = %d, ret = %d", - sit, sit->loaded, t->ret); }