Port: Add compat for platforms with no MSG_NOSIGNAL or SO_NOSIGPIPE
[babeltrace.git] / formats / lttng-live / lttng-live-comm.c
index d60126f4dd981c18097996611c497ffe9b8d712d..485dabba376cf67351b659edef18726770f6fdb2 100644 (file)
@@ -52,6 +52,7 @@
 #include <formats/ctf/events-private.h>
 
 #include <babeltrace/compat/memstream.h>
+#include <babeltrace/compat/send.h>
 
 #include "lttng-live.h"
 #include "lttng-viewer-abi.h"
@@ -103,7 +104,7 @@ ssize_t lttng_live_send(int fd, const void *buf, size_t len)
        ssize_t ret;
 
        do {
-               ret = send(fd, buf, len, MSG_NOSIGNAL);
+               ret = bt_send_nosigpipe(fd, buf, len);
        } while (ret < 0 && errno == EINTR);
        return ret;
 }
This page took 0.023832 seconds and 4 git commands to generate.