Cygwin: pty: Prevent the helper process from exiting by Ctrl-C.
This commit is contained in:
parent
bd31b7c5d5
commit
cac5f8781a
@ -10,6 +10,7 @@ main (int argc, char **argv)
|
|||||||
SetEvent (h);
|
SetEvent (h);
|
||||||
if (argc == 4) /* Pseudo console helper mode for PTY */
|
if (argc == 4) /* Pseudo console helper mode for PTY */
|
||||||
{
|
{
|
||||||
|
SetConsoleCtrlHandler (NULL, TRUE);
|
||||||
HANDLE hPipe = (HANDLE) strtoull (argv[3], &end, 0);
|
HANDLE hPipe = (HANDLE) strtoull (argv[3], &end, 0);
|
||||||
char buf[64];
|
char buf[64];
|
||||||
sprintf (buf, "StdHandles=%p,%p\n",
|
sprintf (buf, "StdHandles=%p,%p\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user