Fix file descriptor leak in Formula#system
This commit is contained in:
parent
6b423c8cfb
commit
691f962b0d
@ -571,6 +571,7 @@ class Formula
|
||||
|
||||
$stdout.reopen(out)
|
||||
$stderr.reopen(out)
|
||||
out.close
|
||||
args.collect!{|arg| arg.to_s}
|
||||
exec(cmd, *args) rescue nil
|
||||
puts "Failed to execute: #{cmd}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user