in reply to signal handler question
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
|
|---|