Commit 5b3bf0dd authored by Martin v. Löwis's avatar Martin v. Löwis

Try some tracing

parent 2d12372e
...@@ -13,6 +13,7 @@ int main() ...@@ -13,6 +13,7 @@ int main()
return 1; return 1;
} }
num_processes = cbNeeded/sizeof(pids[0]); num_processes = cbNeeded/sizeof(pids[0]);
printf("%d processes\n", num_processes);
for (i = 0; i < num_processes; i++) { for (i = 0; i < num_processes; i++) {
HANDLE hProcess; HANDLE hProcess;
char path[MAX_PATH]; char path[MAX_PATH];
...@@ -41,7 +42,8 @@ int main() ...@@ -41,7 +42,8 @@ int main()
} }
_strlwr(path); _strlwr(path);
/* printf("%s\n", path); */ printf("%s\n", path);
fflush(stdout);
if (strstr(path, "build\\pcbuild\\python_d.exe") != NULL) { if (strstr(path, "build\\pcbuild\\python_d.exe") != NULL) {
printf("Terminating %s (pid %d)\n", path, pids[i]); printf("Terminating %s (pid %d)\n", path, pids[i]);
if (!TerminateProcess(hProcess, 1)) { if (!TerminateProcess(hProcess, 1)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment