From 50b8033d6b7404670ee985de1473fffc10dd7d9c Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 14 Aug 2019 16:44:11 -0700 Subject: 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] --- lib/drb/drb.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/drb') diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb index 15eba3f4f1..25642dd939 100644 --- a/lib/drb/drb.rb +++ b/lib/drb/drb.rb @@ -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 -- cgit v1.2.3