]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: console: Disable cons_master_thread in win32-input-mode
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 31 Aug 2024 09:32:00 +0000 (18:32 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 31 Aug 2024 10:05:49 +0000 (19:05 +0900)
commit84d77e5918e18170c393407d477140fcf5d3e432
treeb256f1be4ac88be1f933c23b8133acb62ac430f3
parenta422196c56fa2b5c4823d67cf92acdfc164e5da4
Cygwin: console: Disable cons_master_thread in win32-input-mode

When win32-input-mode (which is supported by Windows Termainal) is
set by "\033[?9001h", cons_master_thread does not work properly and
consumes larger and larger memory space. This is because sending
event by WriteConsoleInput() is translated into the sequence that
is used by win32-input-mode. Due to this behaviour, write-back
of the INPUT_RECORDs does not work as expected. With this patch,
cons_master_thread is disabled on win32-input-mode where the signal
keys such as Ctrl-C, Ctrl-Z etc. never comes.

Addresses: https://cygwin.com/pipermail/cygwin/2024-August/256380.html
Fixes: ff4440fcf768 ("Cygwin: console: Introduce new thread which handles input signal.")
Reported-by: Adamyg Mob <adamyg.mob@gmail.com>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/fhandler/console.cc
winsup/cygwin/local_includes/fhandler.h
winsup/cygwin/release/3.5.5 [new file with mode: 0644]
This page took 0.028919 seconds and 5 git commands to generate.