diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-10 09:01:30 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-10 09:01:30 +0000 |
commit | 6871c342747a7df80450bde2aeabf4629648f9c6 (patch) | |
tree | 9d9d261f91ef01bcd27d6f2e6b7ff12626f4687e | |
parent | f3098471770a3b813a4b5a6680af1374e908798f (diff) |
* prelude.rb (Mutex::synchronize): capture exception from unlock.
[ruby-dev:32935]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | prelude.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Jan 10 18:00:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * prelude.rb (Mutex::synchronize): capture exception from unlock. + [ruby-dev:32935] + Thu Jan 10 10:15:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * io.c (io_encoding_set): IO.pipe("euc-jp", nil) should work as diff --git a/prelude.rb b/prelude.rb index 8d6f70657e..a38a578595 100644 --- a/prelude.rb +++ b/prelude.rb @@ -7,7 +7,7 @@ class Mutex begin yield ensure - self.unlock + self.unlock rescue nil end end end |