diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2019-09-09 15:08:20 +0300 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2019-09-14 16:17:27 +0300 |
commit | cac5f8781a7bfb21e7e0bd938ac235d5063166c8 (patch) | |
tree | ac7c702c5350b0c8b25bae7394404fbad353aa0e | |
parent | bd31b7c5d54e26d3fb02946f1a88e97fa7379e3e (diff) |
Cygwin: pty: Prevent the helper process from exiting by Ctrl-C.
-rw-r--r-- | winsup/utils/cygwin-console-helper.cc | 1 |
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", |