Fix: Use MSG_NOSIGNAL when calling sendmsg()
[lttng-tools.git] / src / common / sessiond-comm / unix.c
index 2c87b82c451f87de02fb5db074cb24a32c752696..a66bb750a8633567d8020ba3ac1c1d6571f62662 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <limits.h>
 #include <stdio.h>
@@ -172,7 +173,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, 0);
+               ret = recvmsg(sock, &msg, MSG_NOSIGNAL);
                if (ret > 0) {
                        iov[0].iov_base += ret;
                        iov[0].iov_len -= ret;
This page took 0.023723 seconds and 4 git commands to generate.