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
In reply to Is 'ignore' the same as 'IGNORE' for %SIG? by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |