]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: make use of the new sd_bus_set_close_on_exit() call in nspawn
authorLennart Poettering <lennart@poettering.net>
Sat, 6 Oct 2018 16:45:58 +0000 (18:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 9 Nov 2018 16:08:59 +0000 (17:08 +0100)
src/nspawn/nspawn.c

index ab19d73c272b2eabeed7ba2bc2b434b5f2c78ab7..97d9c7c7b7e6a1be195cb3e008c45e84ceac9f04 100644 (file)
@@ -3974,6 +3974,10 @@ static int run(int master,
                 r = sd_bus_default_system(&bus);
                 if (r < 0)
                         return log_error_errno(r, "Failed to open system bus: %m");
+
+                r = sd_bus_set_close_on_exit(bus, false);
+                if (r < 0)
+                        return log_error_errno(r, "Failed to disable close-on-exit behaviour: %m");
         }
 
         if (!arg_keep_unit) {