]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdin.c
simplify sched: nuke PRE_EOF_IS_ERROR
[paraslash.git] / stdin.c
diff --git a/stdin.c b/stdin.c
index 6b9c80988b365c76fe77e8a470004e2398739d5f..299c326e589ef5e00cc7d8279cacce2db5ef6d33 100644 (file)
--- 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);
 }