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