mirror of
https://github.com/AxioDL/logvisor.git
synced 2025-12-08 13:15:09 +00:00
Don't kill windows console on abort
This commit is contained in:
@@ -99,8 +99,8 @@ void KillProcessTree() {
|
|||||||
|
|
||||||
// kill child processes
|
// kill child processes
|
||||||
while (bContinue) {
|
while (bContinue) {
|
||||||
// only kill child processes
|
// only kill child processes and let console window remain
|
||||||
if (pe.th32ParentProcessID == myprocID) {
|
if (pe.th32ParentProcessID == myprocID && wcscmp(pe.szExeFile, L"conhost.exe")) {
|
||||||
HANDLE hChildProc = ::OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe.th32ProcessID);
|
HANDLE hChildProc = ::OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe.th32ProcessID);
|
||||||
|
|
||||||
if (hChildProc) {
|
if (hChildProc) {
|
||||||
|
|||||||
Reference in New Issue
Block a user