]> git.proxmox.com Git - mirror_lxc.git/commit
{commands,start}: remove element from list first
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 18 Feb 2018 22:20:05 +0000 (23:20 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 18 Feb 2018 22:20:05 +0000 (23:20 +0100)
commit300d1cb40a436e7592e08eb47f249d3cc92aa3e1
treec95de2b8afe1cdc32407f4176e0f5848fdc7ac47
parent81084dbd0e03c0be26eae5acc9ff77668f29421b
{commands,start}: remove element from list first

First remove the client from the list then close the fd. Otherwise we open
ourselves to a race where another codepath might be writing to a bad file
descriptor.

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