dovecot-2.2: master: Make sure new processes aren't created afte...

dovecot at dovecot.org dovecot at dovecot.org
Fri Sep 20 03:42:04 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/d7627178a7f2
changeset: 16780:d7627178a7f2
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Sep 20 03:41:51 2013 +0300
description:
master: Make sure new processes aren't created after stop signal is received.

diffstat:

 src/master/main.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r f9ab3d21689b -r d7627178a7f2 src/master/main.c
--- a/src/master/main.c	Fri Sep 20 02:38:53 2013 +0300
+++ b/src/master/main.c	Fri Sep 20 03:41:51 2013 +0300
@@ -438,6 +438,9 @@
 		  si->si_signo, dec2str(si->si_pid),
 		  dec2str(si->si_uid),
 		  lib_signal_code_to_str(si->si_signo, si->si_code));
+	/* make sure new processes won't be created by the currently
+	   running ioloop. */
+	services->destroying = TRUE;
 	master_service_stop(master_service);
 }
 


More information about the dovecot-cvs mailing list