projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d9cb21
)
stdout pre_select(): use a minimal delay on input eof
author
Andre
<maan@p133.(none)>
Mon, 12 Jun 2006 07:36:59 +0000
(09:36 +0200)
committer
Andre
<maan@p133.(none)>
Mon, 12 Jun 2006 07:36:59 +0000
(09:36 +0200)
stdout.c
patch
|
blob
|
history
diff --git
a/stdout.c
b/stdout.c
index
e9277d9
..
f857814
100644
(file)
--- 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);
}