Use lttng_read/lttng_write wrappers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 11 Nov 2013 19:12:26 +0000 (14:12 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 11 Nov 2013 20:05:08 +0000 (15:05 -0500)
commit6cd525e813795a1d5e38feac8dedf2c73ffb1274
tree09b973f2ab59c2c032acc5dfad2c5d3d2a0e747d
parent33b141366b29aa086ecb8d06808d7ba91f83cb1e
Use lttng_read/lttng_write wrappers

This ensures we deal with EINTR and partial reads in the same way
everywhere.

This also fixes non-null-terminated string bug in
src/common/compat/compat-epoll.c and src/common/sessiond-comm/inet.c.

Also, lttng_pipe_read() and lttng_pipe_write() return values are changed
to simply match those of lttng_read() and lttng_write(). Their
implementation is replaced by the wrappers, except for locking and
checks.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
17 files changed:
src/bin/lttng-relayd/live.c
src/bin/lttng-relayd/main.c
src/bin/lttng-sessiond/ht-cleanup.c
src/bin/lttng-sessiond/main.c
src/bin/lttng-sessiond/ust-thread.c
src/bin/lttng-sessiond/utils.c
src/common/compat/compat-epoll.c
src/common/consumer-metadata-cache.c
src/common/consumer-stream.c
src/common/consumer.c
src/common/index/index.c
src/common/index/index.h
src/common/pipe.c
src/common/readwrite.c
src/common/runas.c
src/common/sessiond-comm/inet.c
src/common/ust-consumer/ust-consumer.c
This page took 0.026679 seconds and 4 git commands to generate.