Mercurial > emacs
changeset 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 | 17bc0cbb7d9b |
children | 31a30cc1d61a |
files | src/callproc.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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)