Fix: exit threads not only on goto restart
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Jan 2015 21:43:08 +0000 (16:43 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Jan 2015 22:10:57 +0000 (17:10 -0500)
commitf32e5e29c42a3a73186f40385564137eff058146
treeeae9d2085e40fcb846b1ed4ac9ad0773dfb8f10c
parentec4c7666d3907424f62e874b78e44ce4b9456f41
Fix: exit threads not only on goto restart

Exit threads as soon as number of FD is 0, on every loop (no need for
goto restart special case). Number of FD being 0 is a sufficient
condition for exiting the thread: it means the quit pipe has been
removed from the poll set.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer.c
This page took 0.025904 seconds and 4 git commands to generate.