Commit 787fe6d9 authored by Martin v. Löwis's avatar Martin v. Löwis

Port cygwin kill_python changes from 2.4 branch.

parent 90e27d38
all: kill_python.exe
./kill_python.exe
kill_python.exe: kill_python.c
gcc -o kill_python.exe kill_python.c -lpsapi
......@@ -42,7 +42,8 @@ int main()
_strlwr(path);
/* printf("%s\n", path); */
if (strstr(path, "build\\pcbuild\\python_d.exe") != NULL) {
if ((strstr(path, "build\\pcbuild\\python_d.exe") != NULL) ||
(strstr(path, "build\\python.exe") != NULL)) {
printf("Terminating %s (pid %d)\n", path, pids[i]);
if (!TerminateProcess(hProcess, 1)) {
printf("Termination failed: %d\n", GetLastError());
......
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