Wed Jul 14 12:25:34 2010perl [...] galumph.com - Ticket created
CC:
Subject:
pid_file() returns 0 if the process is already running.
Date:
Wed, 14 Jul 2010 16:25:24 +0000 (GMT)
To:
bug-Unix-PID [...] rt.cpan.org
From:
perl [...] galumph.com
pid_file() is documented to return undef if the process is already running, but it returns 0 if pid_file_no_unlink() returns undef.
The problem is line 165 in pid_file():
return 0 if $rc == 0;
undef is always equal to 0, so line 166 doesn't get executed. This should probably be changed to:
return 0 if defined $rc && $rc == 0;
Fri Dec 24 19:46:05 2010dmuey [...] cpan.org - Status changed from 'new' to 'resolved'
Fri Dec 24 19:46:05 2010dmuey [...] cpan.org - Fixed in 0.22 added