summaryrefslogtreecommitdiff
path: root/src/login/logind-session.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-08-05 15:58:39 +0200
committerDaniel Mack <daniel@zonque.org>2015-08-05 17:06:45 +0200
commit3cde9e8fa0ae2a424ae2e6e27e14668ca5d90c98 (patch)
treed8320bbaeec3fae3b838278f4c764f185eabe7c9 /src/login/logind-session.h
parent652f0e397fab33e325f4119dceece9f334f549cf (diff)
logind: switch to sd_bus_track helper
Let logind use the sd_bus_track helper object to track the controllers of sessions. This does not only remove quite some code but also kills the unconditional matches for all NameOwnerChanged signals. The latter is something we should never ever do, as it wakes up the daemon every time a client connects, which doesn't scale.
Diffstat (limited to 'src/login/logind-session.h')
-rw-r--r--src/login/logind-session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind-session.h b/src/login/logind-session.h
index b8565ebf51..d054c33cec 100644
--- a/src/login/logind-session.h
+++ b/src/login/logind-session.h
@@ -117,6 +117,7 @@ struct Session {
char *controller;
Hashmap *devices;
+ sd_bus_track *track;
LIST_FIELDS(Session, sessions_by_user);
LIST_FIELDS(Session, sessions_by_seat);