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>
Sebastian Schuberth committed
Oct 23, 2014 at 21:30 UTC
7b68b0eebf2148808f005b65569a76a83e3482bd
1 file changed
+1
-1
gitk
+1
-1
@@ -445,7 +445,7 @@ proc stop_instance {inst} {
445
set pid [pid $fd]
446
447
if {$::tcl_platform(platform) eq {windows}} {
448
- exec kill -f $pid
448
+ exec taskkill /pid $pid
449
} else {
450
exec kill $pid
451
}