diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-07-26 18:59:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-07-26 19:03:54 +0200 |
commit | 76e665855edef5b7103cb09d114377d477bfae02 (patch) | |
tree | 4141612e4ff03505d41ac1fc8e69e8709334c579 /src/machine/machine-dbus.c | |
parent | e21fea24ae2a7a04f6d5c9d2bbbaf5833d248952 (diff) |
logind: update the session state file before we send out the CreateSession() reply
https://bugs.freedesktop.org/show_bug.cgi?id=67273
Diffstat (limited to 'src/machine/machine-dbus.c')
-rw-r--r-- | src/machine/machine-dbus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c index 6e1b8f8186..ceab96e078 100644 --- a/src/machine/machine-dbus.c +++ b/src/machine/machine-dbus.c @@ -350,6 +350,10 @@ int machine_send_create_reply(Machine *m, DBusError *error) { return log_oom(); } + /* Update the machine state file before we notify the client + * about the result. */ + machine_save(m); + if (!dbus_connection_send(m->manager->bus, reply, NULL)) return log_oom(); |