Subject: | kill 0,0 is true (edge case) |
Several places in D:C there is a check for ($pid && pid_running($pid) ).
pid_running should be updated to handle the edge case for `kill 0,0` being true.
( do_restart currently does not check this but all other do_* actions do)
Potential fix:
sub pid_running {
my ( $self ) = @_;
$self->read_pid;
- return 0 unless kill 0, $self->pid;
+ return 0 unless $pid && kill 0, $self->pid;