diff options
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 6833bab67..9620b29d3 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -648,10 +648,10 @@ fhandler_console::close (void) set_io_handle (NULL); set_output_handle (NULL); if (!cygheap->fdtab.in_vfork_cleanup () && --open_fhs <= 0 - && myself->ctty != FH_CONSOLE) + && myself->ctty != TTY_CONSOLE) { - syscall_printf ("open_fhs %d, freeing console", - fhandler_console::open_fhs); + syscall_printf ("open_fhs %d, freeing console %p", + fhandler_console::open_fhs, myself->ctty); FreeConsole (); } debug_printf ("decremented open_fhs, now %d", open_fhs); |