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

Re: deprecating SIGDIE

Thread Previous | Thread Next
From:
Graham Barr
Date:
September 30, 1999 07:00
Subject:
Re: deprecating SIGDIE
Message ID:
19990930085403.E22419@adsl32.static36.directlink.net
On Thu, Sep 30, 1999 at 07:32:09AM -0600, Tom Christiansen wrote:
> The code patch to restore $SIG{__DIE__} to its intended behaviour
> is trivial:

> -    if (PL_diehook) {
> +    /*
> +     * Added test so that a die hook only triggers
> +     * if the exception is uncaught.  tchrist 30/Sept/99
> +     */
> +    if (PL_diehook && !was_in_eval) {

I am not sure this is the right fix. This would effectivly
make it SIG{__EXIT_ON_DIE__}. Or is this what you want ?

IMO, eval should just do the local($SIG{__DIE__})

-- 
For myself I am an optimist--it does not seem to be much use being
anything else. -- Winston Churchill


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