]> git.ipfire.org Git - thirdparty/lxc.git/commit
start: ensure cgroups are cleaned up 1729/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 3 Aug 2017 21:55:23 +0000 (23:55 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 3 Aug 2017 21:55:23 +0000 (23:55 +0200)
commit4288b79f23248e64f182bad5273e084b28680f69
treeef5b69f8eab304e3433a6269d7e25cd63d4880c5
parentaaede7171d2790ce03323d96789a02fbfd34bb53
start: ensure cgroups are cleaned up

When a container is marked as being in STOPPED state it is possible for another
thread to start it again even though not all cleanup operations for that
container have finished. This is not a problem for most things like sockets and
friends which are unique to the container. It is however a problem for cgroups
which are named after that container in that we cause our cgroup driver to
waste cpu cycles finding a new cgroup name.

Closes  #1726.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c