summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-11-01 22:02:36 +0100
committerLennart Poettering <lennart@poettering.net>2011-11-01 22:02:36 +0100
commit6ddaf1ca4ab0e6a094f6d37fa1e0c604c6d867ba (patch)
treeccfc214de3f3067643cc17273cc08addf425c166 /src
parentf632a6634dd4eff041425aa9b3fb48ccfa98c014 (diff)
cgroup: always recreate cgroup before we try to apply attributes
We might have trimmed the cgroup tree previously, hence don't trust our own "realized" flag, always recreate cgroup tree before applying our attributes to make sure this actually works out. https://bugzilla.redhat.com/show_bug.cgi?id=749687
Diffstat (limited to 'src')
-rw-r--r--src/cgroup.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cgroup.c b/src/cgroup.c
index dcf2c2feb7..be837c3d0f 100644
--- a/src/cgroup.c
+++ b/src/cgroup.c
@@ -38,9 +38,6 @@ int cgroup_bonding_realize(CGroupBonding *b) {
assert(b->path);
assert(b->controller);
- if (b->realized)
- return 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));