aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-16 23:38:20 +0000
committerChristopher Faylor <me@cgf.cx>2003-03-16 23:38:20 +0000
commitf2889a9904c47f37c173c10936859be2c6482991 (patch)
tree98bdab5aaff9554f49bb184bbcbc26343cca9d72
parent52fec2a8948f3bf5c6c82011ce8e2cf3d19cf8ae (diff)
downloadnewlib-unlabeled-1.93.2.zip
newlib-unlabeled-1.93.2.tar.gz
newlib-unlabeled-1.93.2.tar.bz2
* fhandler_console.cc (fhandler_console::close): Correct check for current tty.github/unlabeled-1.93.2unlabeled-1.93.2
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.
-rw-r--r--winsup/cygwin/fhandler_tty.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 678849a..cd032c9 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -565,10 +565,10 @@ fhandler_tty_slave::open (path_conv *, int flags, mode_t)
int
fhandler_tty_slave::close ()
{
- if (!output_done_event)
+ if (!output_done_event && !cygheap->fdtab.in_vfork_cleanup ())
{
fhandler_console::open_fhs--;
- termios_printf ("decremeted open_fhs %d", fhandler_console::open_fhs);
+ termios_printf ("decremented open_fhs %d", fhandler_console::open_fhs);
}
return fhandler_tty_common::close ();
}