Skip to content

Commit

Permalink
cgroups: log container process entering
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 4691665 commit accd629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lxc/cgroups/cgfsng.c
Expand Up @@ -1538,6 +1538,8 @@ __cgfsng_ops static bool cgfsng_payload_enter(struct cgroup_ops *ops,
ret = lxc_writeat(h->cgfd_con, "cgroup.procs", pidstr, len);
if (ret != 0)
return log_error_errno(false, errno, "Failed to enter cgroup \"%s\"", h->container_full_path);

TRACE("Moved container into %s cgroup via %d", h->container_full_path, h->cgfd_con);
}

return true;
Expand Down

0 comments on commit accd629

Please sign in to comment.