diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-04-10 16:18:17 +0900 |
---|---|---|
committer | Takashi Yano <takashi.yano@nifty.ne.jp> | 2025-04-11 04:27:51 +0900 |
commit | dc6aa87761e2720181c27b06b537e9e9c995c293 (patch) | |
tree | 3d869a860aa77c975be405e79496ae29def694c0 /libgloss/m32c/argvlen.S | |
parent | 3b06366ed1b752baa1173fac442702d397485d37 (diff) | |
download | newlib-main.zip newlib-main.tar.gz newlib-main.tar.bz2 |
Cygwin: console: Fix the console states after the console is closedHEADgithub/mastergithub/mainmastermain
Due to a bug introduced by the commit 3312f2d21f13, when the parent
process exits before the child process exits, disable_master_thread
is wrongly set to true, that disables special key handling such as
Ctrl-C. With this patch, the disable_master_thread is set to true if
any of the following conditions is met.
- The parent process is not a cygwin process.
- The master process already died.
- The current process is the master process.
Otherwise, disable_master_thread remains false to keep special key
handling enabled.
Addresses: https://cygwin.com/pipermail/cygwin/2025-April/257909.html
Fixed: 3312f2d21f13 ("Cygwin: console: Redesign mode set strategy on close().")
Reported-by: Jeremy Drake <cygwin@jdrake.com>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Diffstat (limited to 'libgloss/m32c/argvlen.S')
0 files changed, 0 insertions, 0 deletions