Commit 900a410
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.
Backported-from: 68a14b6 (Cygwin: console: Disable cons_master_thread in win32-input-mode, 2024-08-31)
Addresses: https://cygwin.com/pipermail/cygwin/2024-August/256380.html
Fixes: ff4440f ("Cygwin: console: Introduce new thread which handles input signal.")
Reported-by: Adamyg Mob <[email protected]>
Signed-off-by: Takashi Yano <[email protected]>
(cherry picked from commit 84d77e5)
Signed-off-by: Johannes Schindelin <[email protected]>1 parent faebbcd commit 900a410
File tree
3 files changed
+14
-2
lines changed- winsup/cygwin
- fhandler
- local_includes
- release
3 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| 821 | + | |
821 | 822 | | |
822 | 823 | | |
823 | 824 | | |
| |||
867 | 868 | | |
868 | 869 | | |
869 | 870 | | |
| 871 | + | |
870 | 872 | | |
871 | 873 | | |
872 | 874 | | |
| |||
1109 | 1111 | | |
1110 | 1112 | | |
1111 | 1113 | | |
1112 | | - | |
| 1114 | + | |
1113 | 1115 | | |
1114 | 1116 | | |
1115 | 1117 | | |
1116 | 1118 | | |
1117 | | - | |
| 1119 | + | |
1118 | 1120 | | |
1119 | 1121 | | |
1120 | 1122 | | |
| |||
2921 | 2923 | | |
2922 | 2924 | | |
2923 | 2925 | | |
| 2926 | + | |
| 2927 | + | |
2924 | 2928 | | |
2925 | 2929 | | |
2926 | 2930 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2160 | 2160 | | |
2161 | 2161 | | |
2162 | 2162 | | |
| 2163 | + | |
| 2164 | + | |
2163 | 2165 | | |
2164 | 2166 | | |
2165 | 2167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments