cgroups: use brackets to have clear semantics for flags checking

parent b82bb22c
...@@ -1527,7 +1527,8 @@ __cgfsng_ops static bool cgfsng_payload_enter(struct cgroup_ops *ops, ...@@ -1527,7 +1527,8 @@ __cgfsng_ops static bool cgfsng_payload_enter(struct cgroup_ops *ops,
struct hierarchy *h = ops->hierarchies[i]; struct hierarchy *h = ops->hierarchies[i];
int ret; int ret;
if (is_unified_hierarchy(h) && handler->clone_flags & CLONE_INTO_CGROUP) if (is_unified_hierarchy(h) &&
(handler->clone_flags & CLONE_INTO_CGROUP))
continue; continue;
ret = lxc_writeat(h->cgfd_con, "cgroup.procs", pidstr, len); ret = lxc_writeat(h->cgfd_con, "cgroup.procs", pidstr, len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment