dovecot-2.1: master: Never create new processes for services tha...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 8 21:40:36 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/96e469ea4fc8
changeset: 13672:96e469ea4fc8
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 08 21:50:46 2011 +0200
description:
master: Never create new processes for services that are being destroyed (reload, deinit)

diffstat:

 src/master/service-process.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r d03524bfcf16 -r 96e469ea4fc8 src/master/service-process.c
--- a/src/master/service-process.c	Tue Nov 08 21:29:34 2011 +0200
+++ b/src/master/service-process.c	Tue Nov 08 21:50:46 2011 +0200
@@ -264,6 +264,11 @@
 		/* throttling service, don't create new processes */
 		return NULL;
 	}
+	if (service->list->destroying) {
+		/* these services are being destroyed, no point in creating
+		   new processes now */
+		return NULL;
+	}
 
 	if (service->type == SERVICE_TYPE_ANVIL &&
 	    service_anvil_global->pid != 0) {


More information about the dovecot-cvs mailing list