]> 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>
Sun, 17 Dec 2017 14:58:24 +0000 (15:58 +0100)
commit7ccbce50ac6b6e6c96057b86235c3ebb435c4bca
treeb04061fcd9e93b77591fab24bd22b7b979bfc792
parent069e60e4d8c914ccb5461ef0e84bbf8563ee52fd
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