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:
parent
2993b24a1e
commit
50b8033d6b
Notes:
git
2019-10-17 04:51:35 +09:00
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue