summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2013-12-15 12:06:37 +0100
committerTom Gundersen <teg@jklm.no>2013-12-18 10:57:13 +0100
commit63966da86d8e71b1f3f2b57d5448770d526421f9 (patch)
tree4deccf3dd9731058be1977c24b18863111a42d85 /src
parent48b9cfcb7cfbcd7ab16cae809ebda32be77366bd (diff)
login: Don't stop a running user manager from garbage-collecting the user.
With the current logic, a user will never be garbage-collected, since its manager will always be around. Change the logic such that a user is garbage-collected when it has no sessions and linger is disabled.
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-user.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
index 6ba8d9807b..441e0860d9 100644
--- a/src/login/logind-user.c
+++ b/src/login/logind-user.c
@@ -618,12 +618,6 @@ bool user_check_gc(User *u, bool drop_not_started) {
if (u->service_job && manager_job_is_active(u->manager, u->service_job))
return true;
- if (u->slice && manager_unit_is_active(u->manager, u->slice) != 0)
- return true;
-
- if (u->service && manager_unit_is_active(u->manager, u->service) != 0)
- return true;
-
return false;
}