aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-05 15:13:52 -0500
committerJack Nagel2014-09-05 15:13:52 -0500
commita211b61441cbecc4cb413c7f96c32a80cdfdbbf7 (patch)
treec960be45685947850a7bb6b6342677ebf4f55993 /Library
parent2efe4cc3b5f226b192294eed84a0d0e3c919f659 (diff)
downloadbrew-a211b61441cbecc4cb413c7f96c32a80cdfdbbf7.tar.bz2
Don't pass the read end of the pipe to exec_cmd
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index af2658e46..645a0a6ce 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -516,8 +516,9 @@ class Formula
begin
pid = fork do
+ rd.close
log.close unless out == log
- exec_cmd(cmd, args, rd, out, logfn)
+ exec_cmd(cmd, args, out, logfn)
end
wr.close
@@ -545,7 +546,7 @@ class Formula
private
- def exec_cmd(cmd, args, rd, out, logfn)
+ def exec_cmd(cmd, args, out, logfn)
ENV['HOMEBREW_CC_LOG_PATH'] = logfn
# TODO system "xcodebuild" is deprecated, this should be removed soon.
@@ -560,7 +561,6 @@ class Formula
ENV.refurbish_args
end
- rd.close
$stdout.reopen(out)
$stderr.reopen(out)
args.collect!{|arg| arg.to_s}