mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
core/cgroup: use > 0 comparison rather than == 1
(cherry picked from commit 8153be97c4
)
This commit is contained in:
parent
ffd90200b2
commit
b08b5996d3
@ -3549,7 +3549,7 @@ bool unit_maybe_release_cgroup(Unit *u) {
|
||||
* failed) we need the cgroup paths to continue to be tracked by the manager so they can be looked up
|
||||
* and cleaned up later. */
|
||||
r = unit_cgroup_is_empty(u);
|
||||
if (r == 1) {
|
||||
if (r > 0) {
|
||||
unit_release_cgroup(u);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user