--- AnyEvent-Watchdog/Watchdog.pm 2009/08/02 15:49:25 1.2 +++ AnyEvent-Watchdog/Watchdog.pm 2009/08/13 22:56:11 1.3 @@ -120,8 +120,7 @@ sysread $P, my $interval, 1 or last; - $heartbeat = ord $interval - unless defined $heartbeat; + $heartbeat = ord $interval; } elsif ($cmd eq chr 4) { # heartbeat @@ -271,7 +270,8 @@ Exit behaviour isn't changed, so if you want a restart instead of an exit, you have to call C. -Once enabled, the heartbeat cannot be switched off. +The heartbeat frequency can be changed as often as you want, an interval +of C<0> disables the heartbeat check again. =cut