diff options
author | Christopher Faylor <me@cgf.cx> | 2003-03-17 19:08:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-03-17 19:08:11 +0000 |
commit | 3543669fd3f89f980180d914ead7e01397f8a502 (patch) | |
tree | bae0cab9587d1928f810183f31f7ade7f8eff2b5 /winsup/cygwin/fhandler_console.cc | |
parent | db14b4abb74c2b3be138f117636c7e2d7844f633 (diff) | |
download | cygnal-3543669fd3f89f980180d914ead7e01397f8a502.tar.gz cygnal-3543669fd3f89f980180d914ead7e01397f8a502.tar.bz2 cygnal-3543669fd3f89f980180d914ead7e01397f8a502.zip |
* 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.
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); |