Skip Menu |

This queue is for tickets about the Unix-PID CPAN distribution.

Report information
The Basics
Id: 59366
Status: resolved
Priority: 0/
Queue: Unix-PID

People
Owner: Nobody in particular
Requestors: perl [...] galumph.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.22



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;