From: Vsevolod Stakhov Date: Tue, 13 Jul 2010 12:14:47 +0000 (+0400) Subject: * Call has_forked method to inform POE about fork X-Git-Tag: 0.3.1~49 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a62ddb9677b3a017a7520c5e294c123687f74523;p=rspamd.git * Call has_forked method to inform POE about fork --- 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) {