]> git.ipfire.org Git - thirdparty/lxc.git/commit
commands: don't traverse whole list
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 22 Nov 2017 13:13:07 +0000 (14:13 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 Dec 2017 11:44:36 +0000 (12:44 +0100)
commite1ff30a9a8ca20e43fcddbb3e217c472f97d91aa
tree8edc6d0f0c03db391706d2615fcd4754f7adc756
parentb6ebd1f247573764c7e9e222c4cb4c1331c19ffa
commands: don't traverse whole list

When we remove a state client fd there's not reason to walk the whole list. We
can simply break once we found and removed the fd.

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