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:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2022-05-08 12:16:17 +0300
committerTakashi Yano <takashi.yano@nifty.ne.jp>2022-05-08 12:16:17 +0300
commit3c4ed01b18ef858de0bd1baaaa583c370ee00c12 (patch)
tree64a4ee1eb9c67cab3a7d1b8dc4519b0ff169200a
parentac2f7f888c3eba20941f5e0cc1c4bb5fd523e730 (diff)
Cygwin: pty: Fix timing of creating invisible console.
- Previously, invisible console was created in fixup_after_exec(). However, actually this should be done in fixup_after_fork(). this patch fixes the issue.
-rw-r--r--winsup/cygwin/fhandler_tty.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index b9cc9736d..b419cbdd0 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -2518,6 +2518,8 @@ fhandler_pty_slave::setup_locale (void)
void
fhandler_pty_slave::fixup_after_fork (HANDLE parent)
{
+ create_invisible_console ();
+
// fork_fixup (parent, inuse, "inuse");
// fhandler_pty_common::fixup_after_fork (parent);
report_tty_counts (this, "inherited", "");
@@ -2527,7 +2529,6 @@ void
fhandler_pty_slave::fixup_after_exec ()
{
reset_switch_to_pcon ();
- create_invisible_console ();
if (!close_on_exec ())
fixup_after_fork (NULL); /* No parent handle required. */