From: Richard M. Stallman Date: Sun, 12 May 1996 22:50:25 +0000 (+0000) Subject: (Fcall_process): Fix previous change (now !MSDOS only). X-Git-Tag: emacs-19.34~637 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd5f8f60db59311aa897a9952541f29dc2ceb7af;p=emacs.git (Fcall_process): Fix previous change (now !MSDOS only). --- diff --git a/src/callproc.c b/src/callproc.c index d9c29a0ba72..265d8287723 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -447,6 +447,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") 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 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") close (filefd); if (fd1 >= 0) close (fd1); - if (fd_error >= 0) - close (fd_error); } if (pid < 0)