Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-17 02:38:20 +0300
committerChristopher Faylor <me@cgf.cx>2003-03-17 02:38:20 +0300
commitf2889a9904c47f37c173c10936859be2c6482991 (patch)
tree98bdab5aaff9554f49bb184bbcbc26343cca9d72
parent52fec2a8948f3bf5c6c82011ce8e2cf3d19cf8ae (diff)
* fhandler_console.cc (fhandler_console::close): Correct check for current tty.unlabeled-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 678849a01..cd032c9f0 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 ();
}