Skip to content
Snippets Groups Projects
Commit a211b614 authored by Jack Nagel's avatar Jack Nagel
Browse files

Don't pass the read end of the pipe to exec_cmd

parent 2efe4cc3
No related branches found
No related tags found
No related merge requests found
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment