summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-26 17:32:19 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-26 17:33:01 +0200
commitcba38758b4d49c6fe7c2f0eea255e11ee9df23eb (patch)
treece078091f357aebadb35bd3bba418482671752b1 /src/machine
parentfd587c876d480863d56bbbdc5e9fcf7e735d98f3 (diff)
logind: update state file after generating the session fifo, not before
https://bugs.freedesktop.org/show_bug.cgi?id=67273
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machined-dbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c
index 1e8bc609a3..6c4d50b3a2 100644
--- a/src/machine/machined-dbus.c
+++ b/src/machine/machined-dbus.c
@@ -543,7 +543,6 @@ DBusHandlerResult bus_message_filter(
if (streq_ptr(path, mm->scope_job)) {
free(mm->scope_job);
mm->scope_job = NULL;
- machine_save(mm);
if (mm->started) {
if (streq(result, "done"))
@@ -553,6 +552,8 @@ DBusHandlerResult bus_message_filter(
machine_send_create_reply(mm, &error);
}
}
+
+ machine_save(mm);
}
machine_add_to_gc_queue(mm);