chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: when trimming cgroup trees, honour sticky bit of tasks file
[elogind.git]
/
src
/
cgroup.c
diff --git
a/src/cgroup.c
b/src/cgroup.c
index 4aa01f18981b5c7a84e7ba2b66c78855201f344d..0005a4fb67cae9bef98466a9c4234d598a4db305 100644
(file)
--- a/
src/cgroup.c
+++ b/
src/cgroup.c
@@
-41,8
+41,11
@@
int cgroup_bonding_realize(CGroupBonding *b) {
if (b->realized)
return 0;
if (b->realized)
return 0;
- if ((r = cg_create(b->controller, b->path)) < 0)
+ r = cg_create(b->controller, b->path);
+ if (r < 0) {
+ log_warning("Failed to create cgroup %s:%s: %s", b->controller, b->path, strerror(-r));
return r;
return r;
+ }
b->realized = true;
b->realized = true;