Subject: | Inconsistent use of $0 and $self->{gd_progname} |
Date: | Fri, 5 Apr 2013 16:01:16 +1100 |
To: | bug-Daemon-Generic [...] rt.cpan.org |
From: | Clinton Mead <clintonmead [...] gmail.com> |
Lines 125 to 142 sometimes inconsistently use $0 sometimes
and $self->{gd_progname} sometimes for reporting status. For example:
print "$0 running - pid $oldpid\n";
Uses $0, whereas:
print "\u$self->{gd_progname} is already running (pid $oldpid)\n";
Uses $self->{gd_progname}.
I suggest $self->{gd_progname} be used everywhere so that output is
independent of the command used to run "programx status" for example.