From: Timo Sirainen Date: Mon, 28 Jun 2010 12:24:20 +0000 (+0100) Subject: master: Most service processes were being idle-killed much too quickly. X-Git-Tag: 2.0.rc1~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c05d0937e228c2817fa2295fc53e8cb81ae5cb8a;p=thirdparty%2Fdovecot%2Fcore.git master: Most service processes were being idle-killed much too quickly. --HG-- branch : HEAD --- diff --git a/src/master/service-monitor.c b/src/master/service-monitor.c index 51649f2c28..71dc55b458 100644 --- a/src/master/service-monitor.c +++ b/src/master/service-monitor.c @@ -103,7 +103,7 @@ static void service_status_less(struct service_process *process, add a bit of randomness so that we don't send the signal to all of them at once */ process->to_idle = - timeout_add((service->set->idle_kill * 1000) + + timeout_add((service->idle_kill * 1000) + (rand() % 100)*10, service_process_kill_idle, process);