]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
report: set description on varlink sockets
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 29 Apr 2026 09:42:00 +0000 (11:42 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 5 May 2026 16:13:28 +0000 (18:13 +0200)
We make multiple connections and without this it's hard to
know socket we're talking to.

src/report/report.c

index c23417afb5b291a5338599a889d5d31dfc2bf076..c0cd92042617a8ed9847d9752faa79f000be3703 100644 (file)
@@ -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");