Fixed regression around executing Ctrl+C in session with TTY
This commit is contained in:
parent
f7797b4542
commit
7506f83b59
|
@ -826,7 +826,7 @@ DWORD WINAPI ProcessPipes(LPVOID p) {
|
||||||
INPUT_RECORD ir;
|
INPUT_RECORD ir;
|
||||||
|
|
||||||
if (buf[i] == 3) {/*Ctrl+C - Raise Ctrl+C*/
|
if (buf[i] == 3) {/*Ctrl+C - Raise Ctrl+C*/
|
||||||
GenerateConsoleCtrlEvent(CTRL_C_EVENT, childProcessId);
|
GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1111,6 +1111,7 @@ int start_with_pty(int ac, wchar_t **av) {
|
||||||
av++;
|
av++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetConsoleCtrlHandler(NULL, FALSE);
|
||||||
GOTO_CLEANUP_ON_FALSE(CreateProcess(NULL, cmd, NULL, NULL, TRUE, CREATE_NEW_CONSOLE,
|
GOTO_CLEANUP_ON_FALSE(CreateProcess(NULL, cmd, NULL, NULL, TRUE, CREATE_NEW_CONSOLE,
|
||||||
NULL, NULL, &si, &pi));
|
NULL, NULL, &si, &pi));
|
||||||
childProcessId = pi.dwProcessId;
|
childProcessId = pi.dwProcessId;
|
||||||
|
|
Loading…
Reference in New Issue