]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Don't log "Sent SIGKILL to .. processes" when actually sending SIGUSR1
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 4 Sep 2019 12:43:06 +0000 (15:43 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 4 Sep 2019 12:58:16 +0000 (15:58 +0300)
The SIGUSR1 is sent when all login processes are full and can't accept any
more connections. This should be handled silently by the master.

src/master/service.c

index cc699eb268c2bbf90939d601c1f6af4af9bbfe7a..5caaf824be2e47dcb7d5ab6943e0a5f7c5236aee 100644 (file)
@@ -522,7 +522,7 @@ unsigned int service_signal(struct service *service, int signo,
                                      dec2str(process->pid), signo);
                }
        }
-       if (count > 0) {
+       if (count > 0 && signo != SIGUSR1) {
                i_warning("Sent %s to %u %s processes",
                          signo == SIGTERM ? "SIGTERM" : "SIGKILL",
                          count, service->set->name);