[前][次][番号順一覧][スレッド一覧]

ruby-changes:58284

From: Jeremy <ko1@a...>
Date: Thu, 17 Oct 2019 04:51:28 +0900 (JST)
Subject: [ruby-changes:58284] 50b8033d6b (master): Handle subclasses of Exception in drb

https://git.ruby-lang.org/ruby.git/commit/?id=50b8033d6b

From 50b8033d6b7404670ee985de1473fffc10dd7d9c Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
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]

diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index 15eba3f..25642dd 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -1701,7 +1701,9 @@ module DRb https://github.com/ruby/ruby/blob/trunk/lib/drb/drb.rb#L1701
           end
         end
         return @succ, @result
-      rescue StandardError, ScriptError, Interrupt
+      rescue NoMemoryError, SystemExit, SystemStackError, SecurityError
+        raise
+      rescue Exception
         @result = $!
         return @succ, @result
       end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]