* 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:
@ -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);
|
||||
|
Reference in New Issue
Block a user