1
0
Fork 0
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:
nobu 2014-07-25 07:55:48 +00:00
parent a818740553
commit 3f818a33a8

View file

@ -88,6 +88,8 @@ module Gem::Util
ensure
STDOUT.reopen stdout
STDERR.reopen stderr
stdout.close
stderr.close
end
end
end