From 76b543756ef69ce69784d571aefe8de65eaeb331 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 Nov 2013 22:00:48 +0100 Subject: 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. --- src/nspawn/nspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nspawn/nspawn.c') diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 06d627c0a9..2778cd8411 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -965,7 +965,7 @@ static int terminate_machine(pid_t pid) { const char *path; int r; - r = sd_bus_open_system(&bus); + r = sd_bus_default_system(&bus); if (r < 0) { log_error("Failed to open system bus: %s", strerror(-r)); return r; -- cgit v1.2.3-54-g00ecf