diff options
author | steve <steve@FreeBSD.org> | 1999-11-07 17:07:05 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-11-07 17:07:05 +0000 |
commit | 9625eca36760f9b511324b7fd7a258edfd1f2404 (patch) | |
tree | 8cecc3d4a244a80e231621d17a66e97dab2a3894 /bin/sh/eval.c | |
parent | 63959e27979c2704578e4ebb754c4b82b7abb2b8 (diff) | |
download | FreeBSD-src-9625eca36760f9b511324b7fd7a258edfd1f2404.zip FreeBSD-src-9625eca36760f9b511324b7fd7a258edfd1f2404.tar.gz |
Correct logic from previous commit - middle processes in long pipes
don't have their stdin closed indisciminantly.
Reviewed by: markm
Diffstat (limited to 'bin/sh/eval.c')
-rw-r--r-- | bin/sh/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c index 701f018..b1609fd 100644 --- a/bin/sh/eval.c +++ b/bin/sh/eval.c @@ -499,7 +499,7 @@ evalpipe(n) close(prevfd); } if (pip[1] >= 0) { - if (!prevfd > 0) + if (prevfd < 0) close(pip[0]); if (pip[1] != 1) { close(1); |