chiark / gitweb /
Actually working with pam
[elogind.git] / src / login / logind-dbus.c
index e6371ff04d9a323e4af123047097c02e94102be0..e142b8fcfe114b31aeca9f6aeadac1fad6967ed0 100644 (file)
@@ -822,6 +822,15 @@ static int method_create_session(sd_bus_message *message, void *userdata, sd_bus
          * created. We send the reply back from
          * session_send_create_reply(). */
 
+        /* Elogind note: replying directly, since we're not actually
+           starting slices and thus we aren't waiting on systemd.  */
+
+        r = session_send_create_reply(session, NULL);
+        if (r < 0)
+                goto fail;
+
+        session_save(session);
+
         return 1;
 
 fail: