From cac5f8781a7bfb21e7e0bd938ac235d5063166c8 Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Mon, 9 Sep 2019 21:08:20 +0900 Subject: [PATCH] Cygwin: pty: Prevent the helper process from exiting by Ctrl-C. --- winsup/utils/cygwin-console-helper.cc | 1 + 1 file changed, 1 insertion(+) 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",