mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user