1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

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.
This commit is contained in:
Thomas Bächler 2013-12-15 12:06:37 +01:00 committed by Tom Gundersen
parent 48b9cfcb7c
commit 63966da86d

View File

@ -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;
}