From: Zbigniew Jędrzejewski-Szmek Date: Wed, 29 Apr 2026 09:42:00 +0000 (+0200) Subject: report: set description on varlink sockets X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c336ef6eb9357de71df3163c7a511c9fb470474;p=thirdparty%2Fsystemd.git report: set description on varlink sockets We make multiple connections and without this it's hard to know socket we're talking to. --- diff --git a/src/report/report.c b/src/report/report.c index c23417afb5b..c0cd9204261 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");