summaryrefslogtreecommitdiff
path: root/prelude.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-10 09:01:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-10 09:01:30 +0000
commit6871c342747a7df80450bde2aeabf4629648f9c6 (patch)
tree9d9d261f91ef01bcd27d6f2e6b7ff12626f4687e /prelude.rb
parentf3098471770a3b813a4b5a6680af1374e908798f (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
Diffstat (limited to 'prelude.rb')
-rw-r--r--prelude.rb2
1 files changed, 1 insertions, 1 deletions
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