summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter.c b/filter.c
index b0c7bf1..dad7396 100644
--- a/filter.c
+++ b/filter.c
@@ -161,6 +161,7 @@ bool filter_apply_chain (struct filter * chain)
* to sync the stream. This is a Hail Mary situation. It seems to work.
*/
close (pipes[1]);
+clearerr(stdin);
if (dup2 (pipes[0], fileno (stdin)) == -1)
flexfatal (_("dup2(pipes[0],0)"));
close (pipes[0]);