From a62ddb9677b3a017a7520c5e294c123687f74523 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 13 Jul 2010 16:14:47 +0400 Subject: * Call has_forked method to inform POE about fork --- utils/redirector.pl.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/redirector.pl.in b/utils/redirector.pl.in index 9dd6a24f0..3ed8838e2 100755 --- a/utils/redirector.pl.in +++ b/utils/redirector.pl.in @@ -439,7 +439,10 @@ while (my $arg = shift @ARGV) { die "Process is already started, check $cfg{pidfile}" if Proc::PidUtil::is_running($cfg{pidfile}); # Do daemonization -Proc::Daemon::Init if !$cfg{debug}; +if (!$cfg{debug}) { + Proc::Daemon::Init; + POE::Kernel->has_forked; +} # Drop privilleges if ($> == 0) { -- cgit v1.2.3