mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 07:48:36 +00:00
Revert "login: Don't stop a running user manager from garbage-collecting the user."
This reverts commit f3656789f8.
https://bugzilla.redhat.com/show_bug.cgi?id=1053315
This commit is contained in:
@@ -629,6 +629,12 @@ int user_check_gc(User *u, bool drop_not_started) {
|
||||
if (u->slice_job || u->service_job)
|
||||
return 1;
|
||||
|
||||
if (u->slice && manager_unit_is_active(u->manager, u->slice) != 0)
|
||||
return 1;
|
||||
|
||||
if (u->service && manager_unit_is_active(u->manager, u->service) != 0)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user