develooper Front page | perl.perl5.porters | Postings from September 1999

Re: deprecating SIGDIE

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
September 29, 1999 09:19
Subject:
Re: deprecating SIGDIE
Message ID:
199909291614.KAA27766@jhereg.perl.com
>I see it as a handler that is invoked when something calls die(). 

That's not what it was meant to be for, and its current use is
completely broken because of strange-action-at-a-distance-effects.
Larry has said that this is wrong, and that the current misuse should
be deprecated or disabled.  

>If the
>behaviour changes, I hope we will get a new signal that has the old
>behaviour; I would much rather, though, see the new behaviour go to the
>new signal rather than breaking existing code. $SIG{__FATAL__} perhaps?
>Or even $SIG{__EXIT__}.

If you want local *CORE::GLOBAL::die = sub {}, you know where to find it.  :-)

>Also relevant to both WARN and DIE handlers is the failure to chain.

There is that.

--tom

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About