From: Martin v. Löwis Date: Sat, 10 Jun 2006 08:14:03 +0000 (+0000) Subject: Port cygwin kill_python changes from 2.4 branch. X-Git-Tag: v2.5b1~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=787fe6d9f629a15d5429fc3017ef33d397e7b179;p=python Port cygwin kill_python changes from 2.4 branch. --- 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());