1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-28 05:57:33 +03:00

bus: set debug name of proxy bus connections

This commit is contained in:
Lennart Poettering 2014-01-22 19:08:22 +01:00
parent 14008e4e9c
commit 44b0ed0586

View 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));