]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
log: Fix log reopening on SIGUSR1
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 6 Nov 2017 23:33:57 +0000 (01:33 +0200)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Tue, 7 Nov 2017 08:27:38 +0000 (10:27 +0200)
src/log/main.c

index e58a9c20a84a08e656f5330d03e70b171424b2c6..d7eb93026ba97761e42019d3ae6d8a4d0b25af26 100644 (file)
@@ -5,7 +5,7 @@
 #include "hostpid.h"
 #include "restrict-access.h"
 #include "master-interface.h"
-#include "master-service.h"
+#include "master-service-private.h"
 #include "master-service-settings.h"
 #include "log-error-buffer.h"
 #include "log-connection.h"
@@ -20,6 +20,7 @@ static struct log_error_buffer *errorbuf;
 static void
 sig_reopen_logs(const siginfo_t *si ATTR_UNUSED, void *context ATTR_UNUSED)
 {
+       master_service->log_initialized = FALSE;
        master_service_init_log(master_service, global_log_prefix);
 }