aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorMike McQuaid2017-06-12 16:16:37 +0100
committerGitHub2017-06-12 16:16:37 +0100
commit22c431d221ca25413f3b63374d75173bedbe9e66 (patch)
treef362e3ec0a69f528234a7833de347e9c63b98080 /Library/Homebrew/utils
parentaa364fbf155ba4c795ebef51abee1212801c4771 (diff)
parent021cef4b2bfebe330fa55e9dcc904a08932bad94 (diff)
downloadbrew-22c431d221ca25413f3b63374d75173bedbe9e66.tar.bz2
Merge pull request #2767 from MikeMcQuaid/rubocop-no-special-global-vars
rubocop: don’t allow special global variables.
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/fork.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb
index 35a55980e..92f5bf899 100644
--- a/Library/Homebrew/utils/fork.rb
+++ b/Library/Homebrew/utils/fork.rb
@@ -37,8 +37,8 @@ module Utils
read.close
Process.wait(pid) unless socket.nil?
raise Marshal.load(data) unless data.nil? || data.empty?
- raise Interrupt if $?.exitstatus == 130
- raise "Suspicious failure" unless $?.success?
+ raise Interrupt if $CHILD_STATUS.exitstatus == 130
+ raise "Suspicious failure" unless $CHILD_STATUS.success?
end
end
end