chiark / gitweb /
cgroup: drop inherit flag, this mus be fixed in the kernel
[elogind.git] / src / cgroup.c
index fb4047f2153cb49d10fb69ea413f7234a80255d6..330014dc9f95e1be55aeb2cc2c38de69d900946e 100644 (file)
@@ -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;
         }