X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=f857814a93ef8310669ca4138156a31394767a8c;hp=e9277d999681fd1108fe26b8ec257bf7fe972d87;hb=b844e3fbfb8a4fc03c83df84626b57fc8dc30ad2;hpb=4d9cb21634d0a078496241552088df96626f0f65 diff --git a/stdout.c b/stdout.c index e9277d99..f857814a 100644 --- a/stdout.c +++ b/stdout.c @@ -12,8 +12,14 @@ void stdout_pre_select(struct sched *s, struct task *t) t->ret = 1; sot->check_fd = 0; - if (!*sot->loaded) + if (!*sot->loaded) { + if (*sot->input_eof) { + t->ret = -E_STDOUT_EOF; + s->timeout.tv_sec = 0; + s->timeout.tv_usec = 1; + } return; + } sot->check_fd = 1; para_fd_set(STDOUT_FILENO, &s->wfds, &s->max_fileno); }