Kill the blame back-end on window close.
[gitweb.git] / git-gui.sh
index b1ed0ec5681ea78fb5ece8393604760fb302214f..83e2645714e11ab783144bb8dc71a968502640d1 100755 (executable)
@@ -497,6 +497,20 @@ proc githook_read {hook_name args} {
        return {}
 }
 
+proc kill_file_process {fd} {
+       set process [pid $fd]
+
+       catch {
+               if {[is_Windows]} {
+                       # Use a Cygwin-specific flag to allow killing
+                       # native Windows processes
+                       exec kill -f $process
+               } else {
+                       exec kill $process
+               }
+       }
+}
+
 proc sq {value} {
        regsub -all ' $value "'\\''" value
        return "'$value'"