1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

busctl: set a description for the bus connection

Unlike most other bus connections in our codebase this one is created
manually and every setting set invididually. It hence does not have a
description by default (as all automatic connections have). Set one
explicitly.
This commit is contained in:
Lennart Poettering 2023-05-05 21:33:56 +02:00
parent 7b674a9ee8
commit acf493390a

View File

@ -77,6 +77,8 @@ static int acquire_bus(bool set_monitor, sd_bus **ret) {
if (r < 0)
return log_error_errno(r, "Failed to allocate bus: %m");
(void) sd_bus_set_description(bus, "busctl");
if (set_monitor) {
r = sd_bus_set_monitor(bus, true);
if (r < 0)