mirror of https://github.com/AxioDL/logvisor.git
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…
Reference in New Issue