diff src/callproc.c @ 15225:a78a1df9690c

(Fcall_process): Fix previous change (now !MSDOS only).
author Richard M. Stallman <rms@gnu.org>
date Sun, 12 May 1996 22:50:25 +0000
parents 221e646ed633
children 99d01b1b8799
line wrap: on
line diff
--- a/src/callproc.c	Sun May 12 22:19:55 1996 +0000
+++ b/src/callproc.c	Sun May 12 22:50:25 1996 +0000
@@ -447,6 +447,10 @@
 	child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir);
       }
 #endif /* not WINDOWSNT */
+
+    /* The MSDOS case did this already.  */
+    if (fd_error >= 0)
+      close (fd_error);
 #endif /* not MSDOS */
 
     environ = save_environ;
@@ -456,8 +460,6 @@
     close (filefd);
     if (fd1 >= 0)
       close (fd1);
-    if (fd_error >= 0)
-      close (fd_error);
   }
 
   if (pid < 0)