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:52 +0000 (14:23 -0400)
commit659d22db173f005d948ac9496131f7732387cc19
tree67325934eb15016e863ece2c8a61881cb257e391
parent3910e60db80edb67d66cbe6c0da382579f6a73df
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.025387 seconds and 4 git commands to generate.