summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-06-10 08:14:03 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-06-10 08:14:03 +0000
commit7261fe7686deb1cf414aaa062c18ae64b8018354 (patch)
tree9b8133201c200704c6c737c5b5b54b1eb3a45256 /Tools
parent7add41e404d08db75ceb7d08fb0b1190267903f6 (diff)
downloadcpython-7261fe7686deb1cf414aaa062c18ae64b8018354.tar.gz
Port cygwin kill_python changes from 2.4 branch.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/buildbot/Makefile6
-rw-r--r--Tools/buildbot/kill_python.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/Tools/buildbot/Makefile b/Tools/buildbot/Makefile
new file mode 100644
index 0000000000..1660231848
--- /dev/null
+++ b/Tools/buildbot/Makefile
@@ -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
+
diff --git a/Tools/buildbot/kill_python.c b/Tools/buildbot/kill_python.c
index ebc9aa4855..ca905f5713 100644
--- a/Tools/buildbot/kill_python.c
+++ b/Tools/buildbot/kill_python.c
@@ -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());