projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Add compat for platforms with no MSG_NOSIGNAL or SO_NOSIGPIPE
[babeltrace.git]
/
formats
/
lttng-live
/
lttng-live-comm.c
diff --git
a/formats/lttng-live/lttng-live-comm.c
b/formats/lttng-live/lttng-live-comm.c
index c01ac8eb2ddabb2a8f5a9ac624871742c3b38ba8..6cad4ab56bcade3c4ddc6be9ce11e0822c802522 100644
(file)
--- a/
formats/lttng-live/lttng-live-comm.c
+++ b/
formats/lttng-live/lttng-live-comm.c
@@
-52,6
+52,7
@@
#include <babeltrace/endian.h>
#include <babeltrace/compat/memstream.h>
#include <babeltrace/endian.h>
#include <babeltrace/compat/memstream.h>
+#include <babeltrace/compat/send.h>
#include "lttng-live.h"
#include "lttng-viewer-abi.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 {
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;
}
} while (ret < 0 && errno == EINTR);
return ret;
}
This page took
0.024355 seconds
and
4
git commands to generate.