Skip Menu |
 

This queue is for tickets about the File-Pid CPAN distribution.

Report information
The Basics
Id: 18960
Status: open
Priority: 0/
Queue: File-Pid

People
Owner: MBERG [...] cpan.org
Requestors: gdunham [...] fas.harvard.edu
Cc:
AdminCc:

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



Subject: uninitialized value warning if you call running without an existing pid file (ie run the first time)
Download (untitled) / with headers
text/plain 304b
Use of uninitialized value in kill at /usr/local/icg/lib/perl/CPAN/lib/File/Pid.pm line 124. here is my fix: sub running { my $self = shift; my $pid = $self->_get_pid_from_file or return undef; return kill(0, $pid) ? $pid : undef; } Thanks, Gayle Awesome Module
From: bitcard [...] froods.org
Download (untitled) / with headers
text/plain 284b
Bump for great justice? If you post your code repository (e.g. github URL) on CPAN, you might find that someone will submit a patch for you. :) On Thu Apr 27 19:45:43 2006, guest wrote: Show quoted text
> Use of uninitialized value in kill at > /usr/local/icg/lib/perl/CPAN/lib/File/Pid.pm line 124.
From: erwan [...] mas.nom.fr
The modification in patch form . Ubuntu & Debian had already included this modifications .
Subject: pid.patch
Download pid.patch
text/x-diff 315b
--- Pid.pm.orig 2005-01-11 14:09:54.000000000 +0100 +++ Pid.pm 2011-02-04 18:28:50.000000000 +0100 @@ -119,7 +119,7 @@ sub running { my $self = shift; - my $pid = $self->_get_pid_from_file; + my $pid = $self->_get_pid_from_file or return undef; return kill(0, $pid) ? $pid
Please fix this asap as it breaks usage of the module on Perl >=5.12.
Download (untitled) / with headers
text/plain 195b
On Fri Feb 04 13:30:20 2011, erwan@mas.nom.fr wrote: Show quoted text
> The modification in patch form
Thank you! I've just patched my new CentOS server so at least my ShinyCMS cron jobs are working again now.
Download (untitled) / with headers
text/plain 238b
This bit me as well. On FreeBSD, this is even more severe, as kill() will blow up if $pid is undef: Can't kill a non-numeric process ID at /usr/local/lib/perl5/site_perl/5.16/File/Pid.pm line 124. Patch in this ticket fixes the issue.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.