Cygwin: pty: Prevent the helper process from exiting by Ctrl-C.

This commit is contained in:
Takashi Yano 2019-09-09 21:08:20 +09:00 committed by Ken Brown
parent bd31b7c5d5
commit cac5f8781a
1 changed files with 1 additions and 0 deletions

View File

@ -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",