Plankton has asked for the wisdom of the Perl Monks concerning the following question:
Dear Wise Monks,
I am trying to find a bug in a daemon written in Perl and it sets %SIG like so:
I understand $SIG{'CHLD'} = 'IGNORE' and there is a sub routine CleanUp defined but no sub-routine ignore. Is this a bug and would it be causing zombies?$SIG{'CHLD'} = 'IGNORE'; $SIG{'HUP'} = 'ignore'; $SIG{'INT'} = 'CleanUp'; # INT = 2 $SIG{'QUIT'} = 'CleanUp'; # QUIT = 3 $SIG{'PIPE'} = 'CleanUp'; # PIPE = 13 $SIG{'ALRM'} = 'IGNORE'; # ALRM = 14 $SIG{'TERM'} = 'CleanUp'; # TERM = 15
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is 'ignore' the same as 'IGNORE' for %SIG?
by cdarke (Prior) on Sep 17, 2010 at 08:07 UTC |