diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-05 15:40:05 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-12-05 15:40:05 -0800 |
commit | 6f9d97cdb5d085476092731fa193359d4e4e3eae (patch) | |
tree | 67bc3c8bb146343d29637ca3167e42be9f0c260f /activesupport/lib | |
parent | ea75eb6499da78589db6b93daea11994487a2e5c (diff) | |
parent | ffe99774bb0b64644dc419ba83d131218854d404 (diff) | |
download | rails-6f9d97cdb5d085476092731fa193359d4e4e3eae.tar.gz rails-6f9d97cdb5d085476092731fa193359d4e4e3eae.tar.bz2 rails-6f9d97cdb5d085476092731fa193359d4e4e3eae.zip |
Merge pull request #12684 from mariovisic/fix_kernel_silence_stream_descriptor_leak
Fix issue with Kernel#silence_stream leaking file descriptors
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/kernel/reporting.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/reporting.rb b/activesupport/lib/active_support/core_ext/kernel/reporting.rb index df11737a6b..3b5e205244 100644 --- a/activesupport/lib/active_support/core_ext/kernel/reporting.rb +++ b/activesupport/lib/active_support/core_ext/kernel/reporting.rb @@ -48,6 +48,7 @@ module Kernel yield ensure stream.reopen(old_stream) + old_stream.close end # Blocks and ignores any exception passed as argument if raised within the block. |