Close the socket after sending the file descriptor to the child
Fixes Homebrew/homebrew#39691.
This commit is contained in:
parent
eda5922eb4
commit
ff11789933
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user