aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-04-25 23:22:58 -0400
committerJack Nagel2015-04-25 23:22:58 -0400
commit913c12fd43909469829023d6d7d3de92e9503406 (patch)
tree0313a03904b58effbe7a5a080afb13d540575a7e /Library
parentf7ded45bc713e20e7c43dba89918e4ad2733ad69 (diff)
downloadbrew-913c12fd43909469829023d6d7d3de92e9503406.tar.bz2
Keep subprocess code inside begin block
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils/fork.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb
index 5504a576a..6e94f250b 100644
--- a/Library/Homebrew/utils/fork.rb
+++ b/Library/Homebrew/utils/fork.rb
@@ -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)