diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-06-10 08:14:03 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-06-10 08:14:03 (GMT) |
commit | 787fe6d9f629a15d5429fc3017ef33d397e7b179 (patch) | |
tree | 22388d13dcfa0bfe697eee17827551ff1226916c /Tools | |
parent | 90e27d38f5ec7c435d32e1eebe0b7a3ad6b60216 (diff) | |
download | cpython-787fe6d9f629a15d5429fc3017ef33d397e7b179.zip cpython-787fe6d9f629a15d5429fc3017ef33d397e7b179.tar.gz cpython-787fe6d9f629a15d5429fc3017ef33d397e7b179.tar.bz2 |
Port cygwin kill_python changes from 2.4 branch.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/buildbot/Makefile | 6 | ||||
-rw-r--r-- | Tools/buildbot/kill_python.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Tools/buildbot/Makefile b/Tools/buildbot/Makefile new file mode 100644 index 0000000..1660231 --- /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 ebc9aa4..ca905f5 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()); |