Keep subprocess code inside begin block

This commit is contained in:
Jack Nagel 2015-04-25 23:22:58 -04:00
parent f7ded45bc7
commit 913c12fd43

View File

@ -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)