There are different schemes for how signals and handlers behave. I think some of those schemes require that the signal handler redeclare itself as handling the signal:
sub killMyself { my( $sig )= @_; $SIG{$sig}= \&killMyself; if ($waitcount > 6) { print STDERR "$serverName ERROR:: The host is hosed\n"; exit; } $waitcount++; }
But I'm not certain. Could be worth a try until a better answer comes along?
- tye
In reply to Re: signal handler question (podozen/2)
by tye
in thread signal handler question
by yogi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |