Make sure handling of exception_action is recursion-safe
authorPeter Rabbitson <ribasushi@cpan.org>
Fri, 12 Feb 2016 08:27:38 +0000 (09:27 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Wed, 23 Mar 2016 13:09:05 +0000 (14:09 +0100)
commit7704dbc93be76967fd8b051a3f6b1df32a2467a3
treea478a9a280c8ce15d108a34a43b5cb4816203105
parent5c33c8beee177383b6c7913989b60629783dedf1
Make sure handling of exception_action is recursion-safe

Pointed out by Lukas Mai in the last (fifth) bullet point of
https://github.com/PerlDancer/Dancer2/issues/1125#issuecomment-180326756

In addition add extra testing making sure that we will not inadvertently
silence $SIG{__DIE__} when the error is *not* transient

Hopefully this is the last piece of the "clean transient exceptions" puzzle,
it's already been way too much faffing: 7cb35852, ddcc02d1 and 5c33c8be :(
lib/DBIx/Class/Schema.pm
t/34exception_action.t
t/storage/reconnect.t