4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

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

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