Subject: | sub running doesn't account for inability to send signals to running process. |
Date: | Fri, 27 Jun 2014 10:39:59 -0700 |
To: | bug-File-Pid [...] rt.cpan.org |
From: | Jeremy Fusco <jeremy.fusco [...] footclan.org> |
The subroutine that checks for a running process. Does not take into
account a process that may be running, but that the kill function cannot
send a signal too. That is, a different user or even root started process.
sub running {
my $self = shift;
my $pid = $self->_get_pid_from_file;
return kill(0, $pid)
? $pid
: undef;
}