[PATCH 1/1] Cygwin: pty: Prevent the helper process from exiting by Ctrl-C.
Takashi Yano
takashi.yano@nifty.ne.jp
Mon Sep 9 12:08:00 GMT 2019
---
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",
--
2.21.0
More information about the Cygwin-patches
mailing list