Commit 16803ffa authored by sikeda's avatar sikeda
Browse files

[-bug] While outgoing spool is empty, terminated slave bulk processes are not reaped.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12503 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 8e9dc69c
......@@ -192,6 +192,9 @@ while (!$end) {
# setting log_level using conf unless it is set by calling option
$log->{level} = $default_log_level;
# Free zombie sendmail process.
Sympa::Mailer->instance->reaper;
Sympa::List::init_list_cache();
# Process grouped notifications
Sympa::Alarm->instance->flush;
......@@ -579,12 +582,14 @@ while (!$end) {
## Sleep for a while if bulk_mailer DB table is empty
sleep $Conf::Conf{'bulk_sleep'};
}
$mailer->reaper();
}
# Purge grouped notifications
Sympa::Alarm->instance->flush(purge => 1);
# Free zombie sendmail process.
Sympa::Mailer->instance->reaper;
$log->syslog('notice', 'Bulk exited normally due to signal');
Sympa::Tools::Daemon::remove_pid('bulk', $PID, $options);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment