Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Setting signal handlers considered unsafe?

by perreal (Monk)
on Nov 05, 2008 at 21:37 UTC ( [id://721823]=note: print w/replies, xml ) Need Help??


in reply to Setting signal handlers considered unsafe?

On my machine:
perl, v5.10.0 Linux localhost.localdomain 2.6.26.5-45.fc9.i686 #1 SMP i686 i386
I got the following flavour of results:
localhost$ perl d.pl child starting SIGARLM: main handler SIGARLM: main handler SIGARLM: main handler Maximal count of pending signals (120) exceeded at d.pl line 14. localhost$ perl d.pl child starting Alarm clock localhost$ perl d.pl child starting Maximal count of pending signals (120) exceeded at d.pl line 9. SIGARLM: main handler localhost$ perl d.pl child starting Alarm clock
What exactly are you trying to do?

Replies are listed 'Best First'.
Re^2: Setting signal handlers considered unsafe?
by gnosek (Sexton) on Nov 05, 2008 at 22:42 UTC
    What exactly are you trying to do?

    I want to ensure that at every moment of my program's life signals are safely handled. I have already experienced strange errors which boil down to non-atomicity of setting signal handlers (a signal gets delivered in the middle of setting a handler, thoroughly confusing perl).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://721823]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found