aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c6
1 files changed, 4 insertions, 2 deletions
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.")
447 child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir); 447 child_setup (filefd, fd1, fd_error, new_argv, 0, current_dir);
448 } 448 }
449#endif /* not WINDOWSNT */ 449#endif /* not WINDOWSNT */
450
451 /* The MSDOS case did this already. */
452 if (fd_error >= 0)
453 close (fd_error);
450#endif /* not MSDOS */ 454#endif /* not MSDOS */
451 455
452 environ = save_environ; 456 environ = save_environ;
@@ -456,8 +460,6 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
456 close (filefd); 460 close (filefd);
457 if (fd1 >= 0) 461 if (fd1 >= 0)
458 close (fd1); 462 close (fd1);
459 if (fd_error >= 0)
460 close (fd_error);
461 } 463 }
462 464
463 if (pid < 0) 465 if (pid < 0)