summaryrefslogtreecommitdiff
path: root/src/cgroup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-16 05:07:30 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-16 05:07:30 +0200
commit5515116b61d23c5ddb1c5ac74adfaf564b28be76 (patch)
tree73d15889ec563015aed825ca4f5d658bb692f6ae /src/cgroup.c
parent41192f6e8af0004c5d736df31c25b849e34e7ac6 (diff)
cgroup: drop inherit flag, this mus be fixed in the kernel
Diffstat (limited to 'src/cgroup.c')
-rw-r--r--src/cgroup.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cgroup.c b/src/cgroup.c
index fb4047f215..330014dc9f 100644
--- a/src/cgroup.c
+++ b/src/cgroup.c
@@ -70,12 +70,7 @@ int cgroup_bonding_realize(CGroupBonding *b) {
goto fail;
}
- if (b->inherit)
- r = cgroup_create_cgroup_from_parent(b->cgroup, true);
- else
- r = cgroup_create_cgroup(b->cgroup, true);
-
- if (r != 0) {
+ if ((r = cgroup_create_cgroup(b->cgroup, true)) != 0) {
r = translate_error(r, errno);
goto fail;
}