Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: $SIG{INT} unlink problem

by Cirollo (Friar)
on Aug 22, 2002 at 13:41 UTC ( #192030=note: print w/replies, xml ) Need Help??


in reply to Re: $SIG{INT} unlink problem
in thread $SIG{INT} unlink problem

FYI, here is a tidbit on signal handlers, from the 5.8.0 perldelta:

Safe Signals

Perl used to be fragile in that signals arriving at inopportune moments could corrupt Perl's internal state. Now Perl postpones handling of signals until it's safe (between opcodes).

This change may have surprising side effects because signals no longer interrupt Perl instantly. Perl will now first finish whatever it was doing, like finishing an internal operation (like sort()) or an external operation (like an I/O operation), and only then look at any arrived signals (and before starting the next operation). No more corrupt internal state since the current operation is always finished first, but the signal may take more time to get heard. Note that breaking out from potentially blocking operations should still work, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://192030]
help
Chatterbox?
[Corion]: Discipulus: Nah, I'm thinking of posting more short stuff, but not all of it is fit for blogs.perl.org, more something a bit longer than Twitter but shorter than my usual b.p.o module posts
[Corion]: But Google+ is tedious and I'd like to keep my posts on an open platform instead, which can be followed via RSS

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2017-05-26 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?