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

Re: deprecating SIGDIE

Thread Previous | Thread Next
Tom Christiansen
September 29, 1999 09:19
Re: deprecating SIGDIE
Message ID:
>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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About