From b73acc204308adf8cff999e875d7b719afa22ca3 Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 6 Mar 2007 02:56:32 +0000 Subject: * ext/tk/sample/irbtkw.rbw: fails to exit process. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/sample/irbtkw.rbw | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ext/tk') diff --git a/ext/tk/sample/irbtkw.rbw b/ext/tk/sample/irbtkw.rbw index 92fa5692f..f6a35be6e 100644 --- a/ext/tk/sample/irbtkw.rbw +++ b/ext/tk/sample/irbtkw.rbw @@ -26,7 +26,11 @@ console.yscrollbar(TkScrollbar.new(top, :width=>10).pack(:before=>console, :side=>:right, :expand=>false, :fill=>:y)) -ev_loop = Thread.new{Tk.mainloop} +irb_thread = nil +ev_loop = Thread.new{ + Tk.mainloop + irb_thread.kill if irb_thread +} # window position control root = Tk.root @@ -116,4 +120,5 @@ console.bind('Control-c'){ irb_thread.join # exit +ev_thread.kill Tk.exit -- cgit