]> git.ipfire.org Git - thirdparty/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>
Fri, 15 Dec 2017 11:54:03 +0000 (12:54 +0100)
commit70935a87aaceed9a6574c887bd8a3f4893d37c34
treeabd5d00ede490c7221fe2e2c364e5c4dde054282
parent0d927edb54a7638b52e0f75c25bc2e08092ad2a7
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