aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
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