summaryrefslogtreecommitdiff
path: root/src/bus-proxyd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-22 19:08:22 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-22 19:08:22 +0100
commit44b0ed05865e0aa900471a5e822dbd1b4e840053 (patch)
tree91fd629ea4e8bec1e33edc81806e137a527061b4 /src/bus-proxyd
parent14008e4e9cc6b51d68cd07ed091f788239d92856 (diff)
bus: set debug name of proxy bus connections
Diffstat (limited to 'src/bus-proxyd')
-rw-r--r--src/bus-proxyd/bus-proxyd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c
index d08559891e..b03845921f 100644
--- a/src/bus-proxyd/bus-proxyd.c
+++ b/src/bus-proxyd/bus-proxyd.c
@@ -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));