From da11939561b1e6eeb1131b68dbf43042fd633a05 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Jun 2011 20:43:34 +0200 Subject: logind: send dbus signals when sessions/users/seats come and go --- src/logind-session.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/logind-session.c') diff --git a/src/logind-session.c b/src/logind-session.c index 0d34037b5d..26f857dc39 100644 --- a/src/logind-session.c +++ b/src/logind-session.c @@ -443,6 +443,8 @@ int session_start(Session *s) { dual_timestamp_get(&s->timestamp); + session_send_signal(s, true); + return 0; } @@ -519,6 +521,8 @@ int session_stop(Session *s) { assert(s); + session_send_signal(s, false); + /* Kill cgroup */ k = session_kill_cgroup(s); if (k < 0) -- cgit v1.2.3-54-g00ecf