diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-13 16:14:47 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-13 16:14:47 +0400 |
commit | a62ddb9677b3a017a7520c5e294c123687f74523 (patch) | |
tree | 582c9e8ae0425b0496e112a93105f3e7aa29a2aa /utils | |
parent | 44c8c04604f42725c7da6853f94faf4e0d47f9a8 (diff) | |
download | rspamd-a62ddb9677b3a017a7520c5e294c123687f74523.tar.gz rspamd-a62ddb9677b3a017a7520c5e294c123687f74523.zip |
* Call has_forked method to inform POE about fork
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/redirector.pl.in | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |