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