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
|
read, write = IO.pipe
|
||||||
|
|
||||||
pid = fork do
|
pid = fork do
|
||||||
ENV["HOMEBREW_ERROR_PIPE"] = server.path
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
ENV["HOMEBREW_ERROR_PIPE"] = server.path
|
||||||
server.close
|
server.close
|
||||||
read.close
|
read.close
|
||||||
write.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
|
write.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user