report: set description on varlink sockets

We make multiple connections and without this it's hard to
know socket we're talking to.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-05-05 18:13:28 +02:00
parent a2186070b7
commit 9c336ef6eb
+4
View 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");