chiark / gitweb /
bus: set debug name of proxy bus connections
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Jan 2014 18:08:22 +0000 (19:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Jan 2014 18:08:22 +0000 (19:08 +0100)
src/bus-proxyd/bus-proxyd.c

index d085598..b038459 100644 (file)
@@ -440,6 +440,12 @@ int main(int argc, char *argv[]) {
                 goto finish;
         }
 
+        r = sd_bus_set_name(a, "sd-proxy");
+        if (r < 0) {
+                log_error("Failed to set bus name: %s", strerror(-r));
+                goto finish;
+        }
+
         r = sd_bus_set_address(a, arg_address);
         if (r < 0) {
                 log_error("Failed to set address to connect to: %s", strerror(-r));