diff options
| author | Jack Nagel | 2015-04-25 23:22:58 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-04-25 23:22:58 -0400 |
| commit | 5a0979c63830dff19533a4426ffca946f4e17742 (patch) | |
| tree | 209da6063362948ddde548803fc754c33fc8dc68 | |
| parent | 9c928a431b5945ed8c9e82e257119a71e54ca667 (diff) | |
| download | homebrew-5a0979c63830dff19533a4426ffca946f4e17742.tar.bz2 | |
Keep subprocess code inside begin block
| -rw-r--r-- | Library/Homebrew/utils/fork.rb | 3 |
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) |
