diff options
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 3c812ce33..496abfd75 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1769,12 +1769,12 @@ set_console_title (char *title) } void -fhandler_console::fixup_after_fork_exec () +fhandler_console::fixup_after_fork_exec (bool execing) { HANDLE h = get_handle (); HANDLE oh = get_output_handle (); - if (close_on_exec () || open (O_NOCTTY | get_flags (), 0)) + if ((execing && close_on_exec ()) || open (O_NOCTTY | get_flags (), 0)) cygheap->manage_console_count ("fhandler_console::fixup_after_fork_exec", -1); else { |