mirror of
https://github.com/python/cpython.git
synced 2025-09-16 13:47:31 +00:00
Revert to 45478, disable kill_python command for now.
This commit is contained in:
parent
c97c11958d
commit
ce8607df96
4 changed files with 6 additions and 11 deletions
|
@ -13,7 +13,6 @@ int main()
|
|||
return 1;
|
||||
}
|
||||
num_processes = cbNeeded/sizeof(pids[0]);
|
||||
printf("%d processes\n", num_processes);
|
||||
for (i = 0; i < num_processes; i++) {
|
||||
HANDLE hProcess;
|
||||
char path[MAX_PATH];
|
||||
|
@ -42,9 +41,7 @@ int main()
|
|||
}
|
||||
|
||||
_strlwr(path);
|
||||
printf("%s\n", path);
|
||||
fflush(stdout);
|
||||
/*
|
||||
/* printf("%s\n", path); */
|
||||
if (strstr(path, "build\\pcbuild\\python_d.exe") != NULL) {
|
||||
printf("Terminating %s (pid %d)\n", path, pids[i]);
|
||||
if (!TerminateProcess(hProcess, 1)) {
|
||||
|
@ -53,8 +50,7 @@ int main()
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
CloseHandle(hProcess);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue