Close the socket after sending the file descriptor to the child

Fixes Homebrew/homebrew#39691.
This commit is contained in:
Jack Nagel 2015-05-12 21:52:30 -04:00
parent eda5922eb4
commit ff11789933

View File

@ -30,6 +30,7 @@ module Utils
retry unless Process.waitpid(pid, Process::WNOHANG)
else
socket.send_io(write)
socket.close
end
write.close
data = read.read