On Wed, Feb 15, 2012 at 11:43:42AM +0000, Martin J. Evans wrote:
> It makes no sense to do this during the global destruction phase. Is the 
> correct way to avoid this to wrap the call to set_err in:
> 
> if (!PL_dirty && !SvTRUE(get_sv("DBI::PERL_ENDING",0))) {
>   set_err
> }
> 
> I wasn't sure about the PERL_ENDING bit.

Just check PL_dirty. That's the one indicating the world is being torn apart.

Tim.

Reply via email to