---
 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

Reply via email to