diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b1cf3b081..ae083bf32 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-03-13 Christopher Faylor + + * include/cygwin/version.h: Bump DLL minor number to 23. + 2003-03-13 Corinna Vinschen * autoload.cc (IsProcessorFeaturePresent): Add. diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 647f14585..6833bab67 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; } diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index adb3947b1..df484fb6f 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -42,7 +42,7 @@ details. */ changes to the DLL and is mainly informative in nature. */ #define CYGWIN_VERSION_DLL_MAJOR 1003 -#define CYGWIN_VERSION_DLL_MINOR 22 +#define CYGWIN_VERSION_DLL_MINOR 23 /* Major numbers before CYGWIN_VERSION_DLL_EPOCH are incompatible. */ diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 6c5b5dafc..097dacbdb 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -265,7 +265,11 @@ setsid (void) { myself->ctty = -1; if (fhandler_console::open_fhs <= 0) - FreeConsole (); + { + syscall_printf ("open_fhs %d, freeing console", + fhandler_console::open_fhs); + FreeConsole (); + } myself->sid = getpid (); myself->pgid = getpid (); syscall_printf ("sid %d, pgid %d, ctty %d", myself->sid, myself->pgid, myself->ctty);