From: Lennart Poettering Date: Tue, 25 Mar 2025 20:45:16 +0000 (-0400) Subject: journald: do not schedule idle timer if our event loop is dying X-Git-Tag: v258-rc1~937^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=808a751fac34fba3f171befee78335b6218c84b2;p=thirdparty%2Fsystemd.git journald: do not schedule idle timer if our event loop is dying --- diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 13a95ef015d..85728b343dc 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -2467,7 +2467,8 @@ int server_start_or_stop_idle_timer(Server *s) { assert(s); - if (!server_is_idle(s)) { + if (sd_event_get_state(s->event) == SD_EVENT_FINISHED || + !server_is_idle(s)) { s->idle_event_source = sd_event_source_disable_unref(s->idle_event_source); return 0; }