projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd9020
)
core/cgroup: use > 0 comparison rather than == 1
author
Mike Yuan
<me@yhndnzj.com>
Sat, 1 Jun 2024 22:37:08 +0000
(06:37 +0800)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Fri, 19 Jul 2024 22:33:14 +0000
(
00:33
+0200)
(cherry picked from commit
8153be97c46dec725fdfaa3358d518ce350bb2ec
)
src/core/cgroup.c
patch
|
blob
|
history
diff --git
a/src/core/cgroup.c
b/src/core/cgroup.c
index 81d044b12330daa7a8f2d5e1ec993114dd12fe07..8f74bea72913d2a8712f1eb3fb2f55002a838fd5 100644
(file)
--- a/
src/core/cgroup.c
+++ b/
src/core/cgroup.c
@@
-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;
}