logind: update state file after generating the session fifo, not before

https://bugs.freedesktop.org/show_bug.cgi?id=67273
This commit is contained in:
Lennart Poettering
2013-07-26 17:33:01 +02:00
parent fd587c876d
commit cba38758b4
3 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -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);