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>2019-09-09 15:08:20 +0300
committerKen Brown <kbrown@cornell.edu>2019-09-14 16:17:27 +0300
commitcac5f8781a7bfb21e7e0bd938ac235d5063166c8 (patch)
treeac7c702c5350b0c8b25bae7394404fbad353aa0e
parentbd31b7c5d54e26d3fb02946f1a88e97fa7379e3e (diff)
Cygwin: pty: Prevent the helper process from exiting by Ctrl-C.
-rw-r--r--winsup/utils/cygwin-console-helper.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/utils/cygwin-console-helper.cc b/winsup/utils/cygwin-console-helper.cc
index ad451ecf5..66004bd15 100644
--- a/winsup/utils/cygwin-console-helper.cc
+++ b/winsup/utils/cygwin-console-helper.cc
@@ -10,6 +10,7 @@ main (int argc, char **argv)
SetEvent (h);
if (argc == 4) /* Pseudo console helper mode for PTY */
{
+ SetConsoleCtrlHandler (NULL, TRUE);
HANDLE hPipe = (HANDLE) strtoull (argv[3], &end, 0);
char buf[64];
sprintf (buf, "StdHandles=%p,%p\n",