develooper Front page | perl.perl5.porters | Postings from January 2001

Re: Does perl really need to use sigsetjmp? (18% performance hit)

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
January 9, 2001 16:01
Subject:
Re: Does perl really need to use sigsetjmp? (18% performance hit)
Message ID:
E14G8fc-0007ii-00@roam1
Alan Burlison <Alan.Burlison@uk.sun.com> writes:
>Nick Ing-Simmons wrote:
>
>> Can those that fear breakage cook up tests that prove things
>> work the way they expect (we could start with program from the
>> 5.002 vintage archive Alan found).
>
>Note that Raphaels test script shows that the combination of eval and
>signal handlers (the very reasom for using sigsetjmp) is broken anyway,
>and as setjmp and sigsetjmp are not MT-safe they can't be used in
>threaded perl.

What do you think of noting the sigmask before we call a signal handler
and restoring it if handler "dies"? (Leaving mask as handler leaves it
if handler runs to bottom - so that handler changing mask is still valid.)

That may not be quite what you would get with sigsetjmp() all the way 
down - but would seem to be a reasonable compromise.


-- 
Nick Ing-Simmons


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