changeset 15236:99d01b1b8799

(Fcall_process): Don't close the same fd twice.
author Karl Heuer <kwzh@gnu.org>
date Wed, 15 May 1996 14:32:37 +0000
parents 440d937a60f7
children e44ef00f509f
files src/callproc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Tue May 14 19:01:53 1996 +0000
+++ b/src/callproc.c	Wed May 15 14:32:37 1996 +0000
@@ -458,7 +458,7 @@
     /* 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);
   }