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-09 06:23:57 +0300
committerTakashi Yano <takashi.yano@nifty.ne.jp>2022-05-09 06:33:04 +0300
commitfbe34bd7642638c2cc11acc41ca2b43f1c56ce16 (patch)
tree20627e30cc01e5ed4842ee756ba6ed881cc52860
parent7b0d2d1e92f60524b8d93a02282c7d4e9021e9b6 (diff)
Cygwin: pty: Not to change code page of parent console.
- The recent commit "Cygwin: pty: Fix timing of creating invisible console." breaks the feature added by commit 72770148, which prevents pty from changing code page of parent console. This patch restores that.
-rw-r--r--winsup/cygwin/fhandler_console.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index d2ed15a99..e84823685 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -1608,7 +1608,7 @@ fhandler_console::close ()
if (con_ra.rabuf)
free (con_ra.rabuf);
- if (!have_execed)
+ if (!have_execed && !invisible_console)
free_console ();
return 0;
}