* [PATCH] gitk: avoid crash if closed while reading references
@ 2009-04-15 16:14 Pat Thoyts
2009-04-15 16:46 ` Johannes Schindelin
0 siblings, 1 reply; 2+ messages in thread
From: Pat Thoyts @ 2009-04-15 16:14 UTC (permalink / raw)
To: git; +Cc: paulus, johannes.schindelin
As recorded in msysGit issue 125 if the user closes gitk while it
reports itself as still reading references then Tk will crash in the
geometry management code. This has been fixed for Tk 8.5.7 and above.
This patch avoids the problem by flushing outstanding geometry events
before calling the readrefs procedure.
See also http://code.google.com/p/msysgit/issues/detail?id=125
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
---
gitk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gitk b/gitk
index 656c2c1..a346bd5 100755
--- a/gitk
+++ b/gitk
@@ -10952,6 +10952,7 @@ catch {
# wait for the window to become visible
tkwait visibility .
wm title . "[file tail $argv0]: [file tail [pwd]]"
+update
readrefs
if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd ne {}} {
--
1.6.2.2.1669.g7eaf8
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gitk: avoid crash if closed while reading references
2009-04-15 16:14 [PATCH] gitk: avoid crash if closed while reading references Pat Thoyts
@ 2009-04-15 16:46 ` Johannes Schindelin
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2009-04-15 16:46 UTC (permalink / raw)
To: Pat Thoyts; +Cc: git, paulus
Hi,
On Wed, 15 Apr 2009, Pat Thoyts wrote:
>
> As recorded in msysGit issue 125 if the user closes gitk while it
> reports itself as still reading references then Tk will crash in the
> geometry management code. This has been fixed for Tk 8.5.7 and above.
> This patch avoids the problem by flushing outstanding geometry events
> before calling the readrefs procedure.
>
> See also http://code.google.com/p/msysgit/issues/detail?id=125
>
> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This is commit 3d3ecb65e34a62b83648516150ec8a99e1b3ace7 in 4msysgit's
'devel' branch now, and will be part of the next msysGit release.
Thanks,
Dscho
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-15 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 16:14 [PATCH] gitk: avoid crash if closed while reading references Pat Thoyts
2009-04-15 16:46 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox