From cf3156842209f8318753861a9dd2d821674f3f59 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Fri, 22 May 2026 17:23:41 +0200 Subject: [PATCH] repart: Flush varlink messages for progress updates Progress updates are not send out immidialty and only once the handler for the run method completes since the event loop is not processed while the run handler is executed. Therefore flush varlink messages immidialty after a progress update is queued. Closes: github.com/systemd/systemd/issues/40238 --- src/repart/repart.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/repart/repart.c b/src/repart/repart.c index 8cfb798339..a9d6d8efec 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -2905,6 +2905,10 @@ static int context_notify( JSON_BUILD_PAIR_UNSIGNED_NOT_EQUAL("progress", percent, UINT_MAX)); if (r < 0) log_debug_errno(r, "Failed to send varlink notify progress notification, ignoring: %m"); + + r = sd_varlink_flush(c->link); + if (r < 0) + log_debug_errno(r, "Failed to flush varlink notify progress notification, ignoring: %m"); } return 0;