Try some tracing

This commit is contained in:
Martin v. Löwis 2006-04-17 10:19:25 +00:00
parent 2d12372e32
commit 5b3bf0dd5e
1 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,7 @@ 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];
@ -41,7 +42,8 @@ int main()
}
_strlwr(path);
/* printf("%s\n", path); */
printf("%s\n", path);
fflush(stdout);
if (strstr(path, "build\\pcbuild\\python_d.exe") != NULL) {
printf("Terminating %s (pid %d)\n", path, pids[i]);
if (!TerminateProcess(hProcess, 1)) {