Re: Calling set_err in global destruction
Tim Bunce <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase.devel |
|---|---|
| Message-ID | <[email protected]> |
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.