Session create/release tested.
[lttng-ust.git] / liblttng-ust-comm / lttng-ust-comm.c
index 214f6e45024562ca4762bcc153344cea4ff70fbe..0ce9fc87a293b4457ee29d027caf6f65954c172b 100644 (file)
@@ -273,7 +273,14 @@ ssize_t lttcomm_send_unix_sock(int sock, void *buf, size_t len)
        msg.msg_iov = iov;
        msg.msg_iovlen = 1;
 
-       ret = sendmsg(sock, &msg, 0);
+       /*
+        * Using the MSG_NOSIGNAL when sending data from sessiond to
+        * libust, so libust does not receive an unhandled SIGPIPE or
+        * SIGURG. The sessiond receiver side can be made more resilient
+        * by ignoring SIGPIPE, but we don't have this luxury on the
+        * libust side.
+        */
+       ret = sendmsg(sock, &msg, MSG_NOSIGNAL);
        if (ret < 0) {
                perror("sendmsg");
        }
This page took 0.024751 seconds and 4 git commands to generate.