diff options
| author | Jack Nagel | 2015-05-12 21:52:30 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-05-12 21:53:04 -0400 |
| commit | ff11789933c45d9897072af913ae1478f5dc26db (patch) | |
| tree | 6fed0be63487c20ec15721ecd6bf98f05b4c2ca6 | |
| parent | eda5922eb47b464f11b8d7cca605a5bb73b42450 (diff) | |
| download | brew-ff11789933c45d9897072af913ae1478f5dc26db.tar.bz2 | |
Close the socket after sending the file descriptor to the child
Fixes Homebrew/homebrew#39691.
| -rw-r--r-- | Library/Homebrew/utils/fork.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb index 24b78e5dd..5c364713b 100644 --- a/Library/Homebrew/utils/fork.rb +++ b/Library/Homebrew/utils/fork.rb @@ -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 |
