]> git.proxmox.com Git - mirror_lxc.git/commit
improve LXC_CMD_GET_CGROUP compatibility
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 15 May 2020 14:33:34 +0000 (16:33 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 15 May 2020 14:33:34 +0000 (16:33 +0200)
commit400d579e69f5f41a14d9fd0617f0e4972ae53dcf
treec89fcd967d87df0140ead190054d3bf63e00b43a
parent94f544e445696e5b941e3ac394a7bf60794f179d
improve LXC_CMD_GET_CGROUP compatibility

When a newer lxc library communicates with an older one
(such as running an lxc 4.0 lxc-freeze on a longer running
container which was started while lxc was still at version
3), the LXC_CMD_GET_LIMITING_CGROUP command is not
available, causing the remote to just close the socket.
Catch this and try the previous command instead.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/commands.c