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);
}