From 9c336ef6eb9357de71df3163c7a511c9fb470474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 29 Apr 2026 11:42:00 +0200 Subject: [PATCH] report: set description on varlink sockets We make multiple connections and without this it's hard to know socket we're talking to. --- src/report/report.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/report/report.c b/src/report/report.c index c23417afb5..c0cd920426 100644 --- a/src/report/report.c +++ b/src/report/report.c @@ -280,6 +280,10 @@ static int call_collect(Context *context, const char *name, const char *path) { if (r < 0) return log_error_errno(r, "Unable to connect to %s: %m", path); + r = sd_varlink_set_description(vl, name); + if (r < 0) + return log_error_errno(r, "Failed to set varlink description: %m"); + r = sd_varlink_set_relative_timeout(vl, TIMEOUT_USEC); if (r < 0) return log_error_errno(r, "Failed to set varlink timeout: %m");