From: Christian Brauner Date: Wed, 10 Feb 2021 19:17:32 +0000 (+0100) Subject: cgroups: log monitor and transient process entering X-Git-Tag: lxc-5.0.0~293^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf88e5b8786f72d24e8104bd08f488ba967803e;p=thirdparty%2Flxc.git cgroups: log monitor and transient process entering Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index eb58deaee..68b047b95 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1483,6 +1483,8 @@ __cgfsng_ops static bool cgfsng_monitor_enter(struct cgroup_ops *ops, if (ret) return log_error_errno(false, errno, "Failed to enter cgroup \"%s\"", h->monitor_full_path); + TRACE("Moved monitor into %s cgroup via %d", h->monitor_full_path, h->cgfd_mon); + if (handler->transient_pid <= 0) continue; @@ -1490,6 +1492,8 @@ __cgfsng_ops static bool cgfsng_monitor_enter(struct cgroup_ops *ops, if (ret) return log_error_errno(false, errno, "Failed to enter cgroup \"%s\"", h->monitor_full_path); + TRACE("Moved transient process into %s cgroup via %d", h->monitor_full_path, h->cgfd_mon); + /* * we don't keep the fds for non-unified hierarchies around * mainly because we don't make use of them anymore after the