chiark / gitweb /
logind: add function session_jobs_reply() to unify the create reply
authorDjalal Harouni <tixxdz@opendz.org>
Thu, 6 Feb 2014 20:37:14 +0000 (21:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Feb 2014 15:34:18 +0000 (16:34 +0100)
commit99e7e3922e1d25d0092bd61444c86dcc9a1e030e
treed17632faf47eff81e35958f2014307fa9a5f41cb
parent743970d2ea6d08aa7c7bff8220f6b7702f2b1db7
logind: add function session_jobs_reply() to unify the create reply

The session_send_create_reply() function which notifies clients about
session creation is used for both session and user units. Unify the
shared code in a new function session_jobs_reply().

The session_save() will be called unconditionally on sessions since it
does not make sense to only call it if '!session->started', this will
also allow to update the session state as soon as possible.
src/login/logind-dbus.c