From: Timo Sirainen Date: Wed, 29 Oct 2025 17:44:15 +0000 (+0200) Subject: lib-master: If SIGINT idle-kill is ignored due to handling a new client, make sure... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41c6d01d1be933cb24183a78aa38651ac2c75ce7;p=thirdparty%2Fdovecot%2Fcore.git lib-master: If SIGINT idle-kill is ignored due to handling a new client, make sure master status is notified Master should have been notified usually, but it could have been an unimportant notification that was ignored due to write() returning EAGAIN. --- diff --git a/src/lib-master/master-service.c b/src/lib-master/master-service.c index 75a021e476..d39b43423a 100644 --- a/src/lib-master/master-service.c +++ b/src/lib-master/master-service.c @@ -114,8 +114,10 @@ static void sig_delayed_die(const siginfo_t *si, void *context) /* SIGINT came from master. die only if we're not handling any clients currently. */ if (service->master_status.available_count != - service->total_available_count) + service->total_available_count) { + master_status_send(service, TRUE); return; + } if (service->idle_die_callback != NULL && !service->idle_die_callback()) {