gitk: On Windows, use a Cygwin-specific flag for kill
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>
Alexander Gavrilov committed
Jul 15, 2008 at 00:35 UTC
b6326e92ef39b37361002bffb1f94645339eec59
1 file changed
+6
-1
gitk
+6
-1
@@ -388,7 +388,12 @@ proc stop_instance {inst} {
388
set fd $commfd($inst)
389
catch {
390
set pid [pid $fd]
391
- exec kill $pid
391
+
392
+ if {$::tcl_platform(platform) eq {windows}} {
393
+ exec kill -f $pid
394
+ } else {
395
+ exec kill $pid
396
+ }
397
}
398
catch {close $fd}
399
nukefile $fd