Keep subprocess code inside begin block
This commit is contained in:
parent
f7ded45bc7
commit
913c12fd43
@ -8,9 +8,8 @@ module Utils
|
||||
read, write = IO.pipe
|
||||
|
||||
pid = fork do
|
||||
ENV["HOMEBREW_ERROR_PIPE"] = server.path
|
||||
|
||||
begin
|
||||
ENV["HOMEBREW_ERROR_PIPE"] = server.path
|
||||
server.close
|
||||
read.close
|
||||
write.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user