Fix: close socket on protocol error, sendmsg MSG_NOSIGNAL
[lttng-ust.git] / liblttng-ust-comm / lttng-ust-comm.c
index 751ad2e3cf2add1ffd805c9ca4df802034e793b1..6edb395f18ca32498a6d5c9c96dc6b2a23cb2737 100644 (file)
@@ -390,7 +390,7 @@ ssize_t ustcomm_send_fds_unix_sock(int sock, int *fds, size_t nb_fd)
        msg.msg_iovlen = 1;
 
        do {
-               ret = sendmsg(sock, &msg, 0);
+               ret = sendmsg(sock, &msg, MSG_NOSIGNAL);
        } while (ret < 0 && errno == EINTR);
        if (ret < 0) {
                /*
This page took 0.022506 seconds and 4 git commands to generate.