summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-05-15 14:32:37 +0000
committerKarl Heuer <kwzh@gnu.org>1996-05-15 14:32:37 +0000
commitf03dd9bd76995040d2c30053b58f87d2544dd2ca (patch)
treed8ba78cd63b71a08338d29aeca4674d9c19e368b /src
parentba9f70a221600c589ba39c77f02f8301ab7d5503 (diff)
downloademacs-f03dd9bd76995040d2c30053b58f87d2544dd2ca.tar.gz
(Fcall_process): Don't close the same fd twice.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 265d8287723..4d84c98edb7 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -458,7 +458,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
/* Close most of our fd's, but not fd[0]
since we will use that to read input from. */
close (filefd);
- if (fd1 >= 0)
+ if (fd1 >= 0 && fd1 != fd_error)
close (fd1);
}