Fix: read subbuffer mmap/splice signedness issue
authorDavid Goulet <dgoulet@efficios.com>
Thu, 6 Feb 2014 19:16:06 +0000 (14:16 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 11 Feb 2014 19:58:46 +0000 (14:58 -0500)
commite90d31bea0595045720f4eca0758d48531a5e17c
tree105046746b148272a4f2ab3ccaab352024a3ab2a
parent311e6ec43d3a254924a92db3693462dda6fbb08c
Fix: read subbuffer mmap/splice signedness issue

Signed and unsigned values were compared thus making the code path where
ret = -1 being interpreted as ret > len == true thus not cleaning up the
relayd.

This patch simplifies the read subbuffer mmap operation since
lttng_write() now provides a guarantee that the return data is either
equal to the count passed or less which the later means the endpoint has
stop working.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c
This page took 0.026489 seconds and 4 git commands to generate.