Merge pull request #27766 from rphibel/cleanup-cgroups-before-cleaning-units

Don't GC unit if it is in cgroup_empty_queue
This commit is contained in:
Daan De Meyer
2023-05-31 14:48:42 +02:00
committed by GitHub
6 changed files with 69 additions and 11 deletions
+3
View File
@@ -441,6 +441,9 @@ bool unit_may_gc(Unit *u) {
if (u->perpetual)
return false;
if (u->in_cgroup_empty_queue)
return false;
if (sd_bus_track_count(u->bus_track) > 0)
return false;