chiark / gitweb /
manager: merge serialization and desrialization counter into one, and increase it...
[elogind.git] / src / main.c
index 76a094383237922510da0658b9b8971feced3896..5a8ef529d280cef197e51b5db0ca45cd69f4d968 100644 (file)
@@ -898,6 +898,9 @@ static int prepare_reexecute(Manager *m, FILE **_f, FDSet **_fds) {
         assert(_f);
         assert(_fds);
 
+        /* Make sure nothing is really destructed when we shut down */
+        m->n_reloading ++;
+
         if ((r = manager_open_serialization(m, &f)) < 0) {
                 log_error("Failed to create serialization file: %s", strerror(-r));
                 goto fail;