From: Christian Brauner Date: Tue, 23 Feb 2021 20:04:41 +0000 (+0100) Subject: attach: handle new and old clients X-Git-Tag: lxc-5.0.0~272^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bef8f784733a601ec7e5df899d6c4039bac18a42;p=thirdparty%2Flxc.git attach: handle new and old clients Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index b6a0664ca..9b7915860 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -1641,8 +1641,7 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function, ret = cgroup_attach(conf, name, lxcpath, pid); if (ret) { call_cleaner(cgroup_exit) struct cgroup_ops *cgroup_ops = NULL; - - if (ret != -ENOCGROUP2) { + if (ret != -ENOCGROUP2 && ret != -ENOSYS) { SYSERROR("Failed to attach cgroup"); goto on_error; }