projects
/
gitmo/MooseX-Daemonize.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix a critic test
[gitmo/MooseX-Daemonize.git]
/
lib
/
MooseX
/
Daemonize.pm
diff --git
a/lib/MooseX/Daemonize.pm
b/lib/MooseX/Daemonize.pm
index
5abe924
..
6bdcadc
100644
(file)
--- a/
lib/MooseX/Daemonize.pm
+++ b/
lib/MooseX/Daemonize.pm
@@
-76,9
+76,11
@@
sub start {
$self->daemonize unless $self->foreground;
# Avoid 'stdin reopened for output' warning with newer perls
+ ## no critic
open( NULL, '/dev/null' );
<NULL> if (0);
-
+ ## use critic
+
$self->save_pid;
$self->setup_signals;
return $$;