]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: When receiving SIGHUP, get the hostname again in case it changed.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Jan 2009 18:44:41 +0000 (13:44 -0500)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Jan 2009 18:44:41 +0000 (13:44 -0500)
--HG--
branch : HEAD

src/master/main.c

index 9bf6d5bb7d30de44a33bb6e752ae199e9cf82562..49598f91fd2543e04709a0ee4192b07f94ca67fe 100644 (file)
@@ -21,6 +21,7 @@
 #include "ssl-init.h"
 #include "log.h"
 #include "sysinfo-get.h"
+#include "hostpid.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -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 {