Skip Menu |

This queue is for tickets about the App-Daemon CPAN distribution.

Report information
The Basics
Id: 61428
Status: resolved
Priority: 0/
Queue: App-Daemon

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.11
Fixed in:
  • 0.01
  • 0.02
  • 0.03
  • 0.04
  • 0.05
  • 0.06
  • 0.07
  • 0.08
  • 0.09



Subject: $App::Daemon::pidfile problem
A show-stopper for me: With 0.09 everything works, but when I installed 0.11 my scripts which were formerly working produced an error: Use of uninitialized value $App::Daemon::pidfile in concatenation (.) or string at /usr/local/share/perl/5.10.0/App/Daemon.pm line 323, <DATA> line 290. Version 0.10 untested
Thanks for your report. The warning message you're getting seems to indicate that you're using App::Daemon's pid_file_write() function before running daemonize(), which I'm puzzled about how this could occur in normal operation. Can you provide code that reproduces the problem?
From: spleen.leveller [...] gmail.com
I just reproduced this bug for the first time migrating a daemon from an old server to a new one. It happens if you use the detach() function instead of daemonize(). Thanks. --Michele Il Dom 26 Set 2010 11:50:51, MSCHILLI ha scritto: Show quoted text
> Thanks for your report. The warning message you're getting seems to > indicate that you're using App::Daemon's pid_file_write() function > before running daemonize(), which I'm puzzled about how this could occur > in normal operation. > > Can you provide code that reproduces the problem?
Great find, thanks! I've fixed the bug and added a test case: https://github.com/mschilli/app-daemon/commit/63564720546057c0d5e6acd2094426c4d75dceb1 and released 0.20 to CPAN.