Branch Coverage

blib/lib/App/CLI/Plugin/Daemonize.pm
Criterion Covered Total %
branch 0 22 0.0


line true false branch
92 0 0 exists $self->config->{'daemonize'} ? :
93 0 0 if (exists $$self{'daemonize'})
97 0 0 if ($daemonize)
112 0 0 unless defined(my $pid = fork)
113 0 0 if ($pid < 0)
116 0 0 if ($pid)
125 0 0 if ($sid < 0)
130 0 0 unless chdir '/'
132 0 0 unless open STDIN, '<', $devnull
133 0 0 unless open STDOUT, '>', $devnull
134 0 0 unless open STDERR, '>&STDOUT'