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>
Mon, 10 Feb 2014 19:55:18 +0000 (14:55 -0500)
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>

No differences found
This page took 0.025455 seconds and 4 git commands to generate.