Subject: | is_running(PID) does not work correctly |
Date: | Fri, 24 Dec 2010 01:59:43 -0800 |
To: | "bug-Unix-PID [...] rt.cpan.org" <bug-Unix-PID [...] rt.cpan.org> |
From: | Michael Cartmell <mcartmell [...] inview.co.uk> |
Calling $pid->is_running() with the PID as the argument does not seem to work. It looks like there's a problem with the regex (missing backslash on d+ - should be \d+)
From the docs:
"$pid->is_running()
If the first argument is all digits then this it calls $pid->is_pid_running for you. Otherwise it calls $pid->is_command_running() for you."
Calling $pid->is_pid_running() instead works.
Cheers
Mike