* cygwin.din: Export btowc, trunc.

* include/cygwin/version.h: Reflect new exports.
* syscalls.cc (_stat): Rename to stat to avoid newlib wrapper.
* syscalls.cc (_fstat): Ditto.
* fhandler_console.cc (fhandler_console::close): Correct check for current tty.
Add debugging output when console is freed.
(set_console_state_for_spawn): Add debugging output.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't decrement console open flag
when vforking.
* sigproc.cc (sigproc_terminate): Fix debugging output.
* spawn.cc (handle): Eliminate second argument.
(spawn_guts): Reflect elimination of argument change to handle.
* syscalls.cc (setsid): Add debugging output when console is freed.
* syscalls.cc (rename): Revert assumption that DELETE_ON_CLOSE works on Win9x.
This commit is contained in:
Christopher Faylor
2003-03-17 19:08:11 +00:00
parent db14b4abb7
commit 3543669fd3
6 changed files with 55 additions and 15 deletions

View File

@ -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);