]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Fix handling of poll
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 25 Mar 2016 15:41:44 +0000 (11:41 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 25 Mar 2016 17:06:21 +0000 (13:06 -0400)
commitcc7165b62a3e44aabdac4cb2d3cfe31dac0dab67
tree3fff132a26178c3886e7c29a47904b6aca82e1d0
parentb53e10a1739b31cb8900ea792572d15919edbcea
lib: Fix handling of poll

poll returns the number of revents that we need to handle
in the array.  revent is a bit field of events that need
to be handled.  thread.c was treating each sub item in the
bitfield as a separate item to handle.

As such the loop over the pollfds would quit early
sometimes.

Ticket: CM-10077
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
lib/thread.c