bus: introduce concept of a default bus for each thread and make use of it everywhere
We want to emphasize bus connections as per-thread communication primitives, hence introduce a concept of a per-thread default bus, and make use of it everywhere.
This commit is contained in:
@@ -129,7 +129,7 @@ static int manager_connect_bus(Manager *m) {
|
||||
assert(m);
|
||||
assert(!m->bus);
|
||||
|
||||
r = sd_bus_open_system(&m->bus);
|
||||
r = sd_bus_default_system(&m->bus);
|
||||
if (r < 0) {
|
||||
log_error("Failed to connect to system bus: %s", strerror(-r));
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user