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)
|
retry unless Process.waitpid(pid, Process::WNOHANG)
|
||||||
else
|
else
|
||||||
socket.send_io(write)
|
socket.send_io(write)
|
||||||
|
socket.close
|
||||||
end
|
end
|
||||||
write.close
|
write.close
|
||||||
data = read.read
|
data = read.read
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user