chiark / gitweb /
core: while we are reloading don't suppress bus signals
[elogind.git] / src / core / main.c
index ada0f9d94b55d187c3b1c4f59dbc40036645c72b..1d188e0bfe349a4b35952b38e80bdb0ef2af894e 100644 (file)
@@ -1613,7 +1613,7 @@ int main(int argc, char *argv[]) {
         if (arg_running_as == SYSTEMD_SYSTEM)
                 bump_rlimit_nofile(&saved_rlimit_nofile);
 
-        r = manager_new(arg_running_as, &m);
+        r = manager_new(arg_running_as, !!serialization, &m);
         if (r < 0) {
                 log_error("Failed to allocate manager object: %s", strerror(-r));
                 goto finish;
@@ -1942,9 +1942,9 @@ finish:
                         watchdog_close(true);
                 }
 
-               /* avoid the creation of new processes forked by the kernel; at this
+                /* avoid the creation of new processes forked by the kernel; at this
                  * point, we will not listen to the signals anyway */
-               cg_uninstall_release_agent(SYSTEMD_CGROUP_CONTROLLER);
+                cg_uninstall_release_agent(SYSTEMD_CGROUP_CONTROLLER);
 
                 execve(SYSTEMD_SHUTDOWN_BINARY_PATH, (char **) command_line, env_block);
                 free(env_block);