]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: If SIGINT idle-kill is ignored, make sure master sees the status update
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 29 Oct 2025 17:42:50 +0000 (19:42 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 31 Oct 2025 10:02:18 +0000 (10:02 +0000)
If initial write() to master status pipe fails with EAGAIN, try to send it
when possible.

src/lib-master/master-service.c

index 0073b39055ed6db76269598aa8f8319e264812be..75a021e4764414e934a463ac54b2dd327c35c2d4 100644 (file)
@@ -121,7 +121,7 @@ static void sig_delayed_die(const siginfo_t *si, void *context)
                    !service->idle_die_callback()) {
                        /* we don't want to die - send a notification to master
                           so it doesn't think we're ignoring it completely. */
-                       master_status_send(service, FALSE);
+                       master_status_send(service, TRUE);
                        return;
                }
        }