Skip to content

Commit

Permalink
gitk: On Windows, use a Cygwin-specific flag for kill
Browse files Browse the repository at this point in the history
MSysGit compiles git binaries as native Windows executables,
so they cannot be killed unless a special flag is specified.

This flag is implemented by the Cygwin version of kill,
which is also included in MSysGit.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Alexander Gavrilov authored and Paul Mackerras committed Jul 31, 2008
1 parent e439e09 commit b6326e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gitk
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,12 @@ proc stop_instance {inst} {
set fd $commfd($inst)
catch {
set pid [pid $fd]
exec kill $pid

if {$::tcl_platform(platform) eq {windows}} {
exec kill -f $pid
} else {
exec kill $pid
}
}
catch {close $fd}
nukefile $fd
Expand Down

0 comments on commit b6326e9

Please sign in to comment.