Commit 8ed79cf
Cygwin: console: Fix the console states after the console is closed
Due to a bug introduced by the commit 3312f2d, 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: 3312f2d ("Cygwin: console: Redesign mode set strategy on close().")
Reported-by: Jeremy Drake <[email protected]>
Signed-off-by: Takashi Yano <[email protected]>1 parent b8fee45 commit 8ed79cf
2 files changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
935 | | - | |
| 935 | + | |
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| |||
1991 | 1991 | | |
1992 | 1992 | | |
1993 | 1993 | | |
1994 | | - | |
1995 | | - | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
1996 | 1997 | | |
1997 | 1998 | | |
1998 | 1999 | | |
| |||
4704 | 4705 | | |
4705 | 4706 | | |
4706 | 4707 | | |
4707 | | - | |
| 4708 | + | |
4708 | 4709 | | |
| 4710 | + | |
4709 | 4711 | | |
4710 | 4712 | | |
4711 | 4713 | | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
4712 | 4728 | | |
4713 | 4729 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2368 | 2368 | | |
2369 | 2369 | | |
2370 | 2370 | | |
2371 | | - | |
| 2371 | + | |
2372 | 2372 | | |
2373 | 2373 | | |
2374 | 2374 | | |
| |||
0 commit comments