diff options
| author | Mike McQuaid | 2013-11-26 16:28:18 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-26 16:28:27 +0000 |
| commit | 3c3bd76528f38f5cdd4fc37e2f015809d5a25c3d (patch) | |
| tree | 4889225b98022220fa528a7ed620fc9b15b5c336 /Library/Homebrew/formula_installer.rb | |
| parent | 435e29385773030324c181b3b16d9cf438ef0634 (diff) | |
| download | brew-3c3bd76528f38f5cdd4fc37e2f015809d5a25c3d.tar.bz2 | |
FormulaInstaller: flush before closing writes.
This seems to help the problem with `brew install -v` sometimes truncating output.
Closes Homebrew/homebrew#24666.
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index c0348fe51..5612815e5 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -371,6 +371,7 @@ class FormulaInstaller read.close exec(*args) rescue Exception => e + write.flush Marshal.dump(e, write) write.close exit! 1 @@ -378,6 +379,7 @@ class FormulaInstaller end ignore_interrupts(:quietly) do # the fork will receive the interrupt and marshall it back + write.flush write.close Process.wait data = read.read |
