diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh index 3f1fe0a856..a85395dccc 100755 --- a/git-gui/git-gui.sh +++ b/git-gui/git-gui.sh @@ -669,9 +669,7 @@ proc kill_file_process {fd} { catch { if {[is_Windows]} { - # Use a Cygwin-specific flag to allow killing - # native Windows processes - exec kill -f $process + exec taskkill /pid $process } else { exec kill $process } diff --git a/gitk-git/gitk b/gitk-git/gitk index 90e83a62fd..6609819e0a 100755 --- a/gitk-git/gitk +++ b/gitk-git/gitk @@ -445,7 +445,7 @@ proc stop_instance {inst} { set pid [pid $fd] if {$::tcl_platform(platform) eq {windows}} { - exec kill -f $pid + exec taskkill /pid $pid } else { exec kill $pid }