diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-25 07:55:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-25 07:55:48 +0000 |
commit | 3f818a33a84337fda559243a14fac480f8b25d4c (patch) | |
tree | 62b8f9f43e804e8fb0ff04cedc1d0e8daab55e1e /lib/rubygems/util.rb | |
parent | a8187405537c7cfc747b14d45c5ee961323dec63 (diff) |
rubygems/util.rb: fix leaked FDs
* lib/rubygems/util.rb (silent_system): close duplicated IOs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/util.rb')
-rw-r--r-- | lib/rubygems/util.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/util.rb b/lib/rubygems/util.rb index 408942d398..9642839cfc 100644 --- a/lib/rubygems/util.rb +++ b/lib/rubygems/util.rb @@ -88,6 +88,8 @@ module Gem::Util ensure STDOUT.reopen stdout STDERR.reopen stderr + stdout.close + stderr.close end end end |