summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-16 19:14:11 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-16 19:15:00 +0200
commitb59e246565337d6c6967059dd15a52a15277433e (patch)
tree3ea65b16f40db14e76ee5437a76c9d2173ea8728 /src/login
parentb69d29ce049f12d463a589e18561dd10ee8c09f1 (diff)
logind: remove redundant entries from logind's default controller lists too
Diffstat (limited to 'src/login')
-rw-r--r--src/login/logind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/login/logind.c b/src/login/logind.c
index 1169752873..6b7012ec73 100644
--- a/src/login/logind.c
+++ b/src/login/logind.c
@@ -1205,6 +1205,9 @@ int manager_startup(Manager *m) {
assert(m);
assert(m->epoll_fd <= 0);
+ cg_shorten_controllers(m->reset_controllers);
+ cg_shorten_controllers(m->controllers);
+
m->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (m->epoll_fd < 0)
return -errno;