diff options
| author | Jack Nagel | 2013-09-07 22:17:52 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-07 22:20:26 -0500 |
| commit | 6fd425b45c02d474380b15ee20ee9cbf4cd4ae6d (patch) | |
| tree | 428d83af5bc55672e14fe37833c8e7fb0fbad683 /Library | |
| parent | b04e346acabf458f0db20b8c2751514ca4e8a598 (diff) | |
| download | homebrew-6fd425b45c02d474380b15ee20ee9cbf4cd4ae6d.tar.bz2 | |
Close read pipe immediately after reading and only when initialized
c.f. #22386.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 26a1b175f..91766bbea 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -417,6 +417,7 @@ class FormulaInstaller write.close Process.wait data = read.read + read.close raise Marshal.load(data) unless data.nil? or data.empty? raise Interrupt if $?.exitstatus == 130 raise "Suspicious installation failure" unless $?.success? @@ -431,8 +432,6 @@ class FormulaInstaller f.rack.rmdir_if_possible end raise - ensure - read.close end def link |
