diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-25 11:15:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-25 11:15:33 +0000 |
commit | 0247fbae3d9b41cac9bc86b74e6a5dbd4ea20444 (patch) | |
tree | f9f6126f78846ae518c2ad605ce258d5a2c28830 | |
parent | 3e37ee5af18889fb3ad78194b7094ff46447f4c4 (diff) |
* lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated
threads should be also processed. [ruby-talk:121320]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | lib/thwait.rb | 7 |
2 files changed, 13 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Thu Nov 25 20:14:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated + threads should be also processed. [ruby-talk:121320] + Thu Nov 25 18:06:37 2004 Tanaka Akira <akr@m17n.org> * configure.in: AC_CHECK_SIZEOF(rlim_t) to include stdio.h to fix @@ -116,11 +121,11 @@ Fri Nov 19 22:44:43 2004 WATANABE Hirofumi <eban@ruby-lang.org> Fri Nov 19 17:46:56 2004 Kouhei Sutou <kou@cozmixng.org> - * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Image#have_required_values): + * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Image#have_required_values): changed /rss/channel/image to be optional. [ruby-Bugs:1047] * test/rss/test_maker_0.9.rb: added tests for the above. - + Fri Nov 19 17:18:17 2004 Kouhei Sutou <kou@cozmixng.org> * lib/rss/rss.rb (RSS::VERSION): 0.1.0 -> 0.1.1. @@ -137,7 +142,7 @@ Fri Nov 19 17:18:17 2004 Kouhei Sutou <kou@cozmixng.org> * lib/rss/2.0.rb (RSS::Rss::Channel#ttl): changed return value type which is not String but Integer. - + * lib/rss/0.9.rb (RSS::Rss::Channel): <skipDays> has <day>s and <skipHours> has <hour>s. diff --git a/lib/thwait.rb b/lib/thwait.rb index 8549ca0884..95d294a85d 100644 --- a/lib/thwait.rb +++ b/lib/thwait.rb @@ -117,8 +117,11 @@ class ThreadsWait @threads.concat threads for th in threads Thread.start(th) do |t| - t.join - @wait_queue.push t + begin + t.join + ensure + @wait_queue.push t + end end end end |