]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Set anvil process's last_status_update immediately after config reload
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 18 Nov 2025 12:49:54 +0000 (14:49 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Tue, 18 Nov 2025 13:56:30 +0000 (13:56 +0000)
src/master/service-process.c

index f9c4a272651add3522b5bf60e2995aae8edbb383..0ef51bb620b693f6664df79cbe0b058b61d0a1a7 100644 (file)
@@ -450,6 +450,13 @@ service_process_create(struct service *service, int accepted_fd,
                process->to_status =
                        timeout_add(SERVICE_FIRST_STATUS_TIMEOUT_SECS * 1000,
                                    service_process_status_timeout, process);
+       } else {
+               /* anvil process is being reused after config reload. Make sure
+                  last status update is not 0, since it has been already sent
+                  and CI testing relies on this. Other status fields might not
+                  be correct either, but hopefully anvil will soon do a status
+                  update that corrects them. */
+               process->last_status_update = ioloop_time;
        }
 
        service->process_count_total++;