projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8725df
)
cgroup: make sure cg_is_empty_recursive() returns 1 for non-existing cgroups
author
Lennart Poettering
<lennart@poettering.net>
Thu, 3 Sep 2015 16:28:21 +0000
(18:28 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 4 Sep 2015 07:07:31 +0000
(09:07 +0200)
Previously, on the legacy hierarchy a non-existing cgroup was considered
identical to an empty one, but the unified hierarchy the check for a
non-existing one returned ENOENT.
src/basic/cgroup-util.c
patch
|
blob
|
history
diff --git
a/src/basic/cgroup-util.c
b/src/basic/cgroup-util.c
index
3ef96b2
..
bf897c9
100644
(file)
--- a/
src/basic/cgroup-util.c
+++ b/
src/basic/cgroup-util.c
@@
-1002,6
+1002,8
@@
int cg_is_empty_recursive(const char *controller, const char *path) {
return r;
r = read_one_line_file(populated, &t);
+ if (r == -ENOENT)
+ return 1;
if (r < 0)
return r;