Skip to content

Commit

Permalink
cgroups: use brackets to have clear semantics for flags checking
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent b82bb22 commit 045ed5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -1527,7 +1527,8 @@ __cgfsng_ops static bool cgfsng_payload_enter(struct cgroup_ops *ops,
struct hierarchy *h = ops->hierarchies[i];
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;

ret = lxc_writeat(h->cgfd_con, "cgroup.procs", pidstr, len);
Expand Down

0 comments on commit 045ed5d

Please sign in to comment.