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:
Lennart Poettering
2013-11-12 00:12:43 +01:00
parent afc6adb5ec
commit 76b543756e
14 changed files with 94 additions and 20 deletions
+1 -1
View File
@@ -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;