Fix: event notifier: adapt read iterator state to poll expectations
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Feb 2020 20:46:41 +0000 (15:46 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 18 Nov 2020 18:12:06 +0000 (13:12 -0500)
commit31c02fb796462c07482101ab2845827f98df30d0
tree637cacf622390480cd2eda14029d2638eff698bf
parent18f12d55db4f9c78bde2738931a45557050858eb
Fix: event notifier: adapt read iterator state to poll expectations

When completing to read a subbuffer, ensure that the state of the
iterator is moved forward so the "put_subbuf" is performed before
returning to the user, so poll() will not return POLLIN when there
is actually no data available to read.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia94b5dcb0c72d8548325b1004f214044f50fd191
src/lttng-abi.c
This page took 0.025735 seconds and 4 git commands to generate.