summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-31 19:46:42 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-31 19:46:42 +0200
commit8c8c43515cee56dfc2298998a9e5958308c46f99 (patch)
tree3d7f891b8478df86683058b9a0e160c69b5c6c8b /src/login/logind.h
parent952d817a41dfe207d159f8278f4d7f1f7654c572 (diff)
logind: properly clean up user cgroups when they run empty
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index 6fcef6f310..5e828bf019 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -81,7 +81,9 @@ struct Manager {
unsigned long session_counter;
unsigned long inhibit_counter;
- Hashmap *cgroups;
+ Hashmap *session_cgroups;
+ Hashmap *user_cgroups;
+
Hashmap *session_fds;
Hashmap *inhibitor_fds;
Hashmap *button_fds;
@@ -146,6 +148,7 @@ void manager_gc(Manager *m, bool drop_not_started);
int manager_get_idle_hint(Manager *m, dual_timestamp *t);
+int manager_get_user_by_cgroup(Manager *m, const char *cgroup, User **user);
int manager_get_session_by_cgroup(Manager *m, const char *cgroup, Session **session);
int manager_get_session_by_pid(Manager *m, pid_t pid, Session **session);