]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: pty: Not to change code page of parent console.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Mon, 9 May 2022 03:23:57 +0000 (12:23 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Mon, 9 May 2022 03:53:28 +0000 (12:53 +0900)
- 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.

winsup/cygwin/fhandler_console.cc

index 5625b7be249ea14a41097f6801d0261e6f9b045d..933614228a5476979e26336ff72aaf24535da41c 100644 (file)
@@ -1610,7 +1610,7 @@ fhandler_console::close ()
   if (con_ra.rabuf)
     free (con_ra.rabuf);
 
-  if (!have_execed)
+  if (!have_execed && !invisible_console)
     free_console ();
   return 0;
 }
This page took 0.033141 seconds and 5 git commands to generate.