XP is just a number | |
PerlMonks |
Re: fork process + SIG handlersby BUU (Prior) |
on Dec 04, 2004 at 05:01 UTC ( [id://412354]=note: print w/replies, xml ) | Need Help?? |
SIG{'HUP'} = $SIG{'INT'} = $SIG{'KILL'} = $SIG{'TERM'} = &sig_handler;
This is wrong, it calls the subroutine sig_handler and assigns the result of that function call to the variables. You want either $SIG{FOO}='sig_handler'; or $SIG{FOO} = \&sig_handler;
In Section
Seekers of Perl Wisdom
|
|