Fix: bad handling of incoming data in consumer thread
authorDavid Goulet <dgoulet@efficios.com>
Wed, 1 Oct 2014 18:16:07 +0000 (14:16 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 1 Oct 2014 18:16:07 +0000 (14:16 -0400)
This will fix Coverity issue 1019892.

The issue uncovered a more serious problem. The loop on ready FDs of the
thread was exiting at each branch thus not going on all fd. This is
problematic when the thread quit pipe is triggered and when there is
also at the same time a request for metadata from the consumer since the
metadata request could have been ignored.

This patch makes sure we go through all FDs in the loop when the thread
quit pipe or the metadata fd is triggered.

Signed-off-by: David Goulet <dgoulet@efficios.com>

No differences found
This page took 0.024886 seconds and 4 git commands to generate.