From 787fe6d9f629a15d5429fc3017ef33d397e7b179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 10 Jun 2006 08:14:03 +0000 Subject: [PATCH] Port cygwin kill_python changes from 2.4 branch. --- Tools/buildbot/Makefile | 6 ++++++ Tools/buildbot/kill_python.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Tools/buildbot/Makefile diff --git a/Tools/buildbot/Makefile b/Tools/buildbot/Makefile new file mode 100644 index 00000000000..16602318481 --- /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 ebc9aa48553..ca905f57139 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());