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:23:48 +0000 (14:23 -0400)
commitef1917cfb80b8fcc1b4cecf28d8a9904c29914be
tree58da054d385e31596a8cae897dd9d3b25a08a421
parent56fa021be759b10596877bd1766e7a6cff234bfb
Fix: bad handling of incoming data in consumer thread

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>
src/bin/lttng-sessiond/main.c
This page took 0.025365 seconds and 4 git commands to generate.