X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogin%2Flogind-session.c;h=58514ea0d2ccae3f1a8e2d8b6dafb13acfdab082;hp=5c8d549316045eb15d5d8a92a299bf20f326ca51;hb=8c8c43515cee56dfc2298998a9e5958308c46f99;hpb=952d817a41dfe207d159f8278f4d7f1f7654c572 diff --git a/src/login/logind-session.c b/src/login/logind-session.c index 5c8d54931..58514ea0d 100644 --- a/src/login/logind-session.c +++ b/src/login/logind-session.c @@ -88,7 +88,7 @@ void session_free(Session *s) { } if (s->cgroup_path) - hashmap_remove(s->manager->cgroups, s->cgroup_path); + hashmap_remove(s->manager->session_cgroups, s->cgroup_path); free(s->cgroup_path); strv_free(s->controllers); @@ -527,7 +527,7 @@ static int session_create_cgroup(Session *s) { } } - hashmap_put(s->manager->cgroups, s->cgroup_path, s); + hashmap_put(s->manager->session_cgroups, s->cgroup_path, s); return 0; } @@ -646,7 +646,7 @@ static int session_terminate_cgroup(Session *s) { STRV_FOREACH(k, s->user->manager->controllers) cg_trim(*k, s->cgroup_path, true); - hashmap_remove(s->manager->cgroups, s->cgroup_path); + hashmap_remove(s->manager->session_cgroups, s->cgroup_path); free(s->cgroup_path); s->cgroup_path = NULL;