diff src/callproc.c @ 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 a78a1df9690c
children 87c6c9287f45
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);
   }