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:
Alan Burlison
Date:
January 9, 2001 17:04
Subject:
Re: Does perl really need to use sigsetjmp? (18% performance hit)
Message ID:
3A5BB4FF.AC205210@uk.sun.com
Nick Ing-Simmons wrote:

> 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.)

I think it is a most excellent suggestion.  After all, if we already
know what the signal mask was, why bother going asking the OS to tell us
what it is?  (I assume you aren't going to use sigprocmask to find out
what it is)

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

In perl terms I think it will be indistinguishable.

Alan Burlison

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