gitk: Do not depend on Cygwin's "kill" command on Windows

Windows does not necessarily mean Cygwin, it could also be MSYS. The
latter ships with a version of "kill" that does not understand "-f".
In msysgit this was addressed by shipping Cygwin's version of kill.

Properly fix this by using the stock Windows "taskkill" command instead,
which is available since Windows XP Professional.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Sebastian Schuberth 2014-10-23 21:30:54 +02:00 committed by Paul Mackerras
parent 09898e7c3b
commit 7b68b0eebf

2
gitk
View File

@ -445,7 +445,7 @@ proc stop_instance {inst} {
set pid [pid $fd] set pid [pid $fd]
if {$::tcl_platform(platform) eq {windows}} { if {$::tcl_platform(platform) eq {windows}} {
exec kill -f $pid exec taskkill /pid $pid
} else { } else {
exec kill $pid exec kill $pid
} }