Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Global SIG handler: Is this advisable? Is there a better way?

by snafu (Chaplain)
on Aug 29, 2006 at 20:52 UTC ( #570249=note: print w/replies, xml ) Need Help??


in reply to Re: Global SIG handler: Is this advisable? Is there a better way?
in thread Global SIG handler: Is this advisable? Is there a better way?

Indeed. And I was thinking that even though I am attempting to trap all signals that even the ones that can't be trapped will not be trapped with my code. I'm thinking that it doesn't hurt anything to trap those signals, though. Right?

The USR1 signal that I'm trapping is actually being trapped for a function purpose of my program that is not clearly obvious from my posted code but you're right, however, that there is no real reason to trap it either unless there is a specific reason. In my case, for this code, there is. :)

Now the CHLD signal you mention is a very interesting case that I didn't think about before. So, I will consider this in my existing code. Thank you!

_ _ _ _ _ _ _ _ _ _
- Jim
Insert clever comment here...

  • Comment on Re^2: Global SIG handler: Is this advisable? Is there a better way?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2019-05-20 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (123 votes). Check out past polls.

    Notices?