chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
manager: merge serialization and desrialization counter into one, and increase it...
[elogind.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 76a094383237922510da0658b9b8971feced3896..5a8ef529d280cef197e51b5db0ca45cd69f4d968 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-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;