Merge pull request #3088 from sjackman/safe-fork

safe_fork: Improve the error message
This commit is contained in:
Mike McQuaid 2017-08-26 13:13:27 +01:00 committed by GitHub
commit a9d63745ef

View File

@ -38,7 +38,7 @@ module Utils
Process.wait(pid) unless socket.nil?
raise Marshal.load(data) unless data.nil? || data.empty?
raise Interrupt if $CHILD_STATUS.exitstatus == 130
raise "Suspicious failure" unless $CHILD_STATUS.success?
raise "Forked child process failed: #{$CHILD_STATUS}" unless $CHILD_STATUS.success?
end
end
end