dovecot-1.2: master: When receiving SIGHUP, get the hostname aga...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jan 7 20:46:51 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/829b6555392b
changeset: 8595:829b6555392b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jan 07 13:44:41 2009 -0500
description:
master: When receiving SIGHUP, get the hostname again in case it changed.

diffstat:

1 file changed, 4 insertions(+)
src/master/main.c |    4 ++++

diffs (21 lines):

diff -r f05c50f43793 -r 829b6555392b src/master/main.c
--- a/src/master/main.c	Wed Jan 07 13:37:46 2009 -0500
+++ b/src/master/main.c	Wed Jan 07 13:44:41 2009 -0500
@@ -21,6 +21,7 @@
 #include "ssl-init.h"
 #include "log.h"
 #include "sysinfo-get.h"
+#include "hostpid.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -151,6 +152,9 @@ static void settings_reload(void)
         login_processes_destroy_all();
         auth_processes_destroy_all();
         dict_process_kill();
+
+	/* see if hostname changed */
+	hostpid_init();
 
 	if (!master_settings_read(configfile, FALSE, FALSE))
 		i_warning("Invalid configuration, keeping old one");


More information about the dovecot-cvs mailing list