mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
a818740553
commit
3f818a33a8
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ module Gem::Util
|
|||
ensure
|
||||
STDOUT.reopen stdout
|
||||
STDERR.reopen stderr
|
||||
stdout.close
|
||||
stderr.close
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue