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)
commitd02b8372bf598bcd71a42823e3beabdeba1b0281
treea368a1e62f0406dd93224700452430c571288c0a
parent6e92aae66f50ea02a78aecc72bead32bcd3dbac4
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.025705 seconds and 4 git commands to generate.