Unverified Commit 122413ad by Stéphane Graber Committed by GitHub

Merge pull request #3817 from brauner/2021-04-30.fixes

cgroups: fix fallback attach codepath
parents b75c91de 112ccbc9
......@@ -2293,7 +2293,7 @@ static int __cg_unified_attach(const struct hierarchy *h,
ret = cgroup_attach(conf, name, lxcpath, pid);
if (ret == 0)
return log_trace(0, "Attached to unified cgroup via command handler");
if (ret != -ENOCGROUP2)
if (!ERRNO_IS_NOT_SUPPORTED(ret) && ret != -ENOCGROUP2)
return log_error_errno(ret, errno, "Failed to attach to unified cgroup");
/* Fall back to retrieving the path for the unified cgroup. */
......
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