From: Christian Brauner Date: Tue, 2 Feb 2021 21:23:45 +0000 (+0100) Subject: attach: check for ENOCGROUP2 explicitly X-Git-Tag: lxc-5.0.0~305^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29619d419bcfb8870ff73efcce591943aaf948cd;p=thirdparty%2Flxc.git attach: check for ENOCGROUP2 explicitly Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 5f8114b2f..ee18bfa3e 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -1522,7 +1522,7 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function, * enough. */ ret = cgroup_attach(conf, name, lxcpath, pid); - if (ret) { + if (ret == -ENOCGROUP2) { call_cleaner(cgroup_exit) struct cgroup_ops *cgroup_ops = NULL; cgroup_ops = cgroup_init(conf);