summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2019-09-09 21:08:20 +0900
committerKen Brown <kbrown@cornell.edu>2019-09-14 09:17:27 -0400
commitcac5f8781a7bfb21e7e0bd938ac235d5063166c8 (patch)
treeac7c702c5350b0c8b25bae7394404fbad353aa0e
parentbd31b7c5d54e26d3fb02946f1a88e97fa7379e3e (diff)
downloadcygnal-cac5f8781a7bfb21e7e0bd938ac235d5063166c8.tar.gz
cygnal-cac5f8781a7bfb21e7e0bd938ac235d5063166c8.tar.bz2
cygnal-cac5f8781a7bfb21e7e0bd938ac235d5063166c8.zip
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",