]> granicus.if.org Git - python/commitdiff
Port cygwin kill_python changes from 2.4 branch.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 10 Jun 2006 08:14:03 +0000 (08:14 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 10 Jun 2006 08:14:03 +0000 (08:14 +0000)
Tools/buildbot/Makefile [new file with mode: 0644]
Tools/buildbot/kill_python.c

diff --git a/Tools/buildbot/Makefile b/Tools/buildbot/Makefile
new file mode 100644 (file)
index 0000000..1660231
--- /dev/null
@@ -0,0 +1,6 @@
+all:   kill_python.exe
+       ./kill_python.exe
+
+kill_python.exe:       kill_python.c
+       gcc -o kill_python.exe kill_python.c -lpsapi
+
index ebc9aa4855328d186797630cb5f18c2bb6fddf08..ca905f5713997d422a0406d95a11caf6eea455c9 100644 (file)
@@ -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());