X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=25eca2ef224f312a1249493d2bc9b192ce066d76;hp=649d464b485142263c768dbfb4698519d3c5aee2;hb=1714e2b80218ef5d7e0275a93f8c2dd9b1809861;hpb=89b30ef7b5ee1bb73b8efa3ccbb53c229066439e diff --git a/stdin.c b/stdin.c index 649d464b..25eca2ef 100644 --- a/stdin.c +++ b/stdin.c @@ -75,7 +75,7 @@ static void stdin_post_select(struct sched *s, struct task *t) } else t->ret = -E_STDIN_EOF; if (t->ret < 0) - sit->eof = 1; + sit->error = t->ret; } /** @@ -92,7 +92,7 @@ void stdin_set_defaults(struct stdin_task *sit) { sit->bufsize = 16 * 1024, sit->loaded = 0, - sit->eof = 0, + sit->error = 0, sit->task.pre_select = stdin_pre_select; sit->task.post_select = stdin_post_select; sit->task.event_handler = stdin_default_event_handler;