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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.