Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2022-02-24 11:28:32 +0300
committerTakashi Yano <takashi.yano@nifty.ne.jp>2022-02-24 11:35:21 +0300
commit5c4a0824e73d689f0c456e605d74b03dcb2f7aec (patch)
tree82901599e8ef3610c8b95c947f596026f0249c46 /winsup/cygwin/sigproc.cc
parentacf642177b81543a4d954e58cfb24347c02b125a (diff)
Cygwin: console: Restore CTRL_BREAK_EVENT handling.
- The recent change by the commit "Cygwin: console: Redesign handling of special keys." breaks the handling of CTRL_BREAK_EVENT. The login shell in console exits on Ctrl-Break key. This patch fixes the issue.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 16ea5031b..4d7d273ae 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -1392,8 +1392,7 @@ wait_sig (VOID *)
sig_held = true;
break;
case __SIGSETPGRP:
- if (::cygheap->ctty)
- init_console_handler (::cygheap->ctty->need_console_handler ());
+ init_console_handler (true);
break;
case __SIGTHREADEXIT:
{