Message ID | ZqDTvavJpDXPeorl@gondor.apana.org.au (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | eval: Reset input for pipelines | expand |
diff --git a/src/eval.c b/src/eval.c index ad2aa03..0f2a7ba 100644 --- a/src/eval.c +++ b/src/eval.c @@ -595,6 +595,7 @@ evalpipe(union node *n, int flags) close(pip[0]); } if (prevfd > 0) { + reset_input(); dup2(prevfd, 0); close(prevfd); }