summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4222434)
(close #170)
Signed-off-by: David Goulet <dgoulet@efficios.com>
msg.msg_iov = iov;
msg.msg_iovlen = 1;
msg.msg_iov = iov;
msg.msg_iovlen = 1;
- ret = sendmsg(sock, &msg, 0);
+ do {
+ ret = sendmsg(sock, &msg, 0);
+ } while (ret < 0 && errno == EINTR);
if (ret < 0) {
/*
* Only warn about EPIPE when quiet mode is deactivated.
if (ret < 0) {
/*
* Only warn about EPIPE when quiet mode is deactivated.
LTTNG_SOCK_SET_PID_CRED(creds, getpid());
#endif /* __linux__ */
LTTNG_SOCK_SET_PID_CRED(creds, getpid());
#endif /* __linux__ */
- ret = sendmsg(sock, &msg, 0);
+ do {
+ ret = sendmsg(sock, &msg, 0);
+ } while (ret < 0 && errno == EINTR);
if (ret < 0) {
/*
* Only warn about EPIPE when quiet mode is deactivated.
if (ret < 0) {
/*
* Only warn about EPIPE when quiet mode is deactivated.