diff options
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 678849a..cd032c9 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -565,10 +565,10 @@ fhandler_tty_slave::open (path_conv *, int flags, mode_t) int fhandler_tty_slave::close () { - if (!output_done_event) + if (!output_done_event && !cygheap->fdtab.in_vfork_cleanup ()) { fhandler_console::open_fhs--; - termios_printf ("decremeted open_fhs %d", fhandler_console::open_fhs); + termios_printf ("decremented open_fhs %d", fhandler_console::open_fhs); } return fhandler_tty_common::close (); } |