chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal: store XOR combination of entry data object hashes to identify hash lines
[elogind.git]
/
src
/
cgroup.c
diff --git
a/src/cgroup.c
b/src/cgroup.c
index d16b5f878fbc6b4eb6c8c7455fb09ef7e1ad5925..dcf2c2feb7a30d44fc347e5e0da2f30f1046be5b 100644
(file)
--- a/
src/cgroup.c
+++ b/
src/cgroup.c
@@
-41,14
+41,14
@@
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;
- if (b->ours)
- cg_trim(b->controller, b->path, false);
-
return 0;
}
return 0;
}
@@
-270,7
+270,7
@@
int manager_setup_cgroup(Manager *m) {
assert(m);
/* 0. Be nice to Ingo Molnar #628004 */
assert(m);
/* 0. Be nice to Ingo Molnar #628004 */
- if (path_is_mount_point("/sys/fs/cgroup/systemd") <= 0) {
+ if (path_is_mount_point("/sys/fs/cgroup/systemd"
, false
) <= 0) {
log_warning("No control group support available, not creating root group.");
return 0;
}
log_warning("No control group support available, not creating root group.");
return 0;
}