1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Handle subclasses of Exception in drb

This makes it so that client instances that call a method on a
server-side object that raise a subclass of Exception are handled
similarly to those that raise a subclass of StandardError.

Only reraise exceptions that we are fairly sure we don't want to
rescue.

Fixes [Bug #5618]
This commit is contained in:
Jeremy Evans 2019-08-14 16:44:11 -07:00
parent 2993b24a1e
commit 50b8033d6b
Notes: git 2019-10-17 04:51:35 +09:00

View file

@ -1701,7 +1701,9 @@ module DRb
end
end
return @succ, @result
rescue StandardError, ScriptError, Interrupt
rescue NoMemoryError, SystemExit, SystemStackError, SecurityError
raise
rescue Exception
@result = $!
return @succ, @result
end