git-gui/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 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: Pat Thoyts <patthoyts@users.sourceforge.net>

Sebastian Schuberth committed Oct 23, 2014 at 21:30 UTC 3b422bc85495d93dd2e3f3ee1f7c792193393687
1 file changed +1 -3
git-gui.sh
+1 -3
@@ -670,9 +670,7 @@ proc kill_file_process {fd} {
670
671 catch {
672 if {[is_Windows]} {
673 - # Use a Cygwin-specific flag to allow killing
674 - # native Windows processes
675 - exec kill -f $process
673 + exec taskkill /pid $process
674 } else {
675 exec kill $process
676 }