]> 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>
Wed, 6 Dec 2017 15:01:19 +0000 (16:01 +0100)
commitb1ca434ae52c6b1ac9f73030d022e2a2e537cb3f
tree676bf4660ec1fdb849c8463f387a6e4ae1c05d3e
parentcfeeed19845dc24d4ecf6e5f13f7c150661b2641
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