From: Timo Sirainen Date: Wed, 7 Jan 2009 18:44:41 +0000 (-0500) Subject: master: When receiving SIGHUP, get the hostname again in case it changed. X-Git-Tag: 1.2.beta1~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36b3eb4cd693fa1c42361afd36e1f9b3186490d1;p=thirdparty%2Fdovecot%2Fcore.git master: When receiving SIGHUP, get the hostname again in case it changed. --HG-- branch : HEAD --- diff --git a/src/master/main.c b/src/master/main.c index 9bf6d5bb7d..49598f91fd 100644 --- a/src/master/main.c +++ b/src/master/main.c @@ -21,6 +21,7 @@ #include "ssl-init.h" #include "log.h" #include "sysinfo-get.h" +#include "hostpid.h" #include #include @@ -152,6 +153,9 @@ static void settings_reload(void) 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"); else {