aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_console.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-13 23:11:38 +0000
committerChristopher Faylor <me@cgf.cx>2003-03-13 23:11:38 +0000
commit41ffdfa51e938fc7370bc88cb9451760bdb33f9b (patch)
treee70e6c10276b748ea5ecbda2293a078127b4e3ad /winsup/cygwin/fhandler_console.cc
parent5b186cd99961b2f60701dee128c9a58fcbd6d8e6 (diff)
downloadnewlib-41ffdfa51e938fc7370bc88cb9451760bdb33f9b.zip
newlib-41ffdfa51e938fc7370bc88cb9451760bdb33f9b.tar.gz
newlib-41ffdfa51e938fc7370bc88cb9451760bdb33f9b.tar.bz2
* include/cygwin/version.h: Bump DLL minor number to 23.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 647f145..6833bab 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -649,7 +649,11 @@ fhandler_console::close (void)
set_output_handle (NULL);
if (!cygheap->fdtab.in_vfork_cleanup () && --open_fhs <= 0
&& myself->ctty != FH_CONSOLE)
- FreeConsole ();
+ {
+ syscall_printf ("open_fhs %d, freeing console",
+ fhandler_console::open_fhs);
+ FreeConsole ();
+ }
debug_printf ("decremented open_fhs, now %d", open_fhs);
return 0;
}