X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fsessiond-comm%2Funix.c;h=8d2e03a5b3f7b1ed894da2eae4dc67693b9a0d3d;hb=db4e2b3e3c9a578a456916f13506012061d919fd;hp=cf2c17ff7ad62444861d562cb9ec42c09d8e1077;hpb=0641441730f08fa4f489db13621edbd85831ea4e;p=lttng-tools.git diff --git a/src/common/sessiond-comm/unix.c b/src/common/sessiond-comm/unix.c index cf2c17ff7..8d2e03a5b 100644 --- a/src/common/sessiond-comm/unix.c +++ b/src/common/sessiond-comm/unix.c @@ -182,7 +182,7 @@ ssize_t lttcomm_recv_unix_sock(int sock, void *buf, size_t len) do { len_last = iov[0].iov_len; - ret = recvmsg(sock, &msg, MSG_NOSIGNAL); + ret = lttng_recvmsg_nosigpipe(sock, &msg); if (ret > 0) { iov[0].iov_base += ret; iov[0].iov_len -= ret; @@ -205,7 +205,7 @@ ssize_t lttcomm_recv_unix_sock(int sock, void *buf, size_t len) * Return the size of sent data. */ LTTNG_HIDDEN -ssize_t lttcomm_send_unix_sock(int sock, void *buf, size_t len) +ssize_t lttcomm_send_unix_sock(int sock, const void *buf, size_t len) { struct msghdr msg; struct iovec iov[1]; @@ -213,7 +213,7 @@ ssize_t lttcomm_send_unix_sock(int sock, void *buf, size_t len) memset(&msg, 0, sizeof(msg)); - iov[0].iov_base = buf; + iov[0].iov_base = (void *) buf; iov[0].iov_len = len; msg.msg_iov = iov; msg.msg_iovlen = 1;