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
|
// 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) {
|
||||||
|
|
Loading…
Reference in New Issue