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
@@ -579,7 +579,7 @@ static int connect_bus(Context *c, sd_event *event, sd_bus **_bus) {
assert(event);
assert(_bus);
r = sd_bus_open_system(&bus);
r = sd_bus_default_system(&bus);
if (r < 0) {
log_error("Failed to get system bus connection: %s", strerror(-r));
return r;