Skip to content

Commit

Permalink
* prelude.rb (Mutex::synchronize): capture exception from unlock.
Browse files Browse the repository at this point in the history
  [ruby-dev:32935]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Jan 10, 2008
1 parent f309847 commit 6871c34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion prelude.rb
Expand Up @@ -7,7 +7,7 @@ def synchronize
begin
yield
ensure
self.unlock
self.unlock rescue nil
end
end
end
Expand Down

0 comments on commit 6871c34

Please sign in to comment.