From: Brandon L Black Date: Thu, 20 Dec 2007 21:12:46 +0000 (+0000) Subject: minor nit: add newline to pidfile contents, so "cat /var/run/foo.pid" output is saner X-Git-Tag: 0_06^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2db85b1892d3c761c2cdaaa540f1f9117592b349;p=gitmo%2FMooseX-Daemonize.git minor nit: add newline to pidfile contents, so "cat /var/run/foo.pid" output is saner --- diff --git a/lib/MooseX/Daemonize/Pid/File.pm b/lib/MooseX/Daemonize/Pid/File.pm index 06bd5dc..29ddd1f 100644 --- a/lib/MooseX/Daemonize/Pid/File.pm +++ b/lib/MooseX/Daemonize/Pid/File.pm @@ -52,7 +52,7 @@ sub does_file_exist { -s (shift)->file } sub write { my $self = shift; my $fh = $self->file->openw; - $fh->print($self->pid); + $fh->print($self->pid . "\n"); $fh->close; } @@ -182,4 +182,4 @@ FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -=cut \ No newline at end of file +=cut