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)
commit42fc1d0b91207fc4bf0a61be0138766642458838
tree5e0f6be0cde6c7fc0dd448c03fb78a0709aeff4d
parent1f47715a589b81c62de8fd49a342bf4cf4be770a
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.026396 seconds and 5 git commands to generate.