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 21:52:04 +0000 (16:52 -0500)
commitb859ccea85cffdd0a068d7bf37d1a5862c3ab9ba
tree4d31a5e6bbe25ee1c721fa05df9fb2fdcc615531
parent3628d5bd420ccb6e7937506a2dbadb95bd3d2d0b
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.025554 seconds and 4 git commands to generate.