ruby-changes:2752
From: ko1@a...
Date: 15 Dec 2007 21:40:02 +0900
Subject: [ruby-changes:2752] akr - Ruby:r14243 (trunk): * lib/timeout.rb: join the background thread to make sure it is dead.
akr 2007-12-15 21:39:25 +0900 (Sat, 15 Dec 2007) New Revision: 14243 Modified files: trunk/ChangeLog trunk/lib/timeout.rb Log: * lib/timeout.rb: join the background thread to make sure it is dead. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14243&r2=14242 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/timeout.rb?r1=14243&r2=14242 Index: ChangeLog =================================================================== --- ChangeLog (revision 14242) +++ ChangeLog (revision 14243) @@ -1,3 +1,7 @@ +Sat Dec 15 21:38:24 2007 Tanaka Akira <akr@f...> + + * lib/timeout.rb: join the background thread to make sure it is dead. + Sat Dec 15 20:20:48 2007 Nobuyoshi Nakada <nobu@r...> * configure.in (enc/Makefile): add external encoding objects list. Index: lib/timeout.rb =================================================================== --- lib/timeout.rb (revision 14242) +++ lib/timeout.rb (revision 14243) @@ -45,7 +45,10 @@ } return yield(sec) ensure - y.kill if y and y.alive? + if y and y.alive? + y.kill + y.join # make sure y is dead. + end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml