]> git.proxmox.com Git - mirror_lxc.git/commit
commands: tweak locking
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 24 Nov 2017 11:51:04 +0000 (12:51 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 6 Dec 2017 15:01:23 +0000 (16:01 +0100)
commitbc631984fcc1c8b69cafbcce448f98961bca1e55
treeedc0894a3e5d21605aeccab9b8db3f821ba08434
parentfc788340f7b336aba2b8cf6a06ba5ff0a8a43b67
commands: tweak locking

Take the lock on the list after we've done all necessary work and check state.
If we are in requested state, do cleanup and return without adding the state
client to the state client list.

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