Fix: close socket on protocol error, sendmsg MSG_NOSIGNAL
[deliverable/lttng-ust.git] / liblttng-ust-comm / lttng-ust-comm.c
index 631ff42f0862ea027bd980b24dfbd041bc5bba8e..bbc59fc2f986b26bd582212005b0e48c60f3a0ec 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.023427 seconds and 5 git commands to generate.