projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the filter expression to the enable_event agent protocol message
[lttng-tools.git]
/
src
/
common
/
sessiond-comm
/
unix.c
diff --git
a/src/common/sessiond-comm/unix.c
b/src/common/sessiond-comm/unix.c
index bee133d8d9cbf8f32c70e8d849c4371ac6e7e1fc..5e0ba62812307d239a6d2f9db76475deb481a976 100644
(file)
--- a/
src/common/sessiond-comm/unix.c
+++ b/
src/common/sessiond-comm/unix.c
@@
-16,7
+16,6
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <assert.h>
#include <limits.h>
#define _LGPL_SOURCE
#include <assert.h>
#include <limits.h>
@@
-183,7
+182,7
@@
ssize_t lttcomm_recv_unix_sock(int sock, void *buf, size_t len)
do {
len_last = iov[0].iov_len;
do {
len_last = iov[0].iov_len;
- ret =
recvmsg(sock, &msg, MSG_NOSIGNAL
);
+ ret =
lttng_recvmsg_nosigpipe(sock, &msg
);
if (ret > 0) {
iov[0].iov_base += ret;
iov[0].iov_len -= ret;
if (ret > 0) {
iov[0].iov_base += ret;
iov[0].iov_len -= ret;
@@
-525,7
+524,7
@@
ssize_t lttcomm_recv_creds_unix_sock(int sock, void *buf, size_t len,
}
memcpy(creds, CMSG_DATA(cmptr), sizeof_cred);
}
memcpy(creds, CMSG_DATA(cmptr), sizeof_cred);
-#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__)
|| defined(__sun__)
)
{
int peer_ret;
{
int peer_ret;
@@
-558,7
+557,7
@@
int lttcomm_setsockopt_creds_unix_sock(int sock)
}
return ret;
}
}
return ret;
}
-#elif (defined(__FreeBSD__) || defined(__CYGWIN__))
+#elif (defined(__FreeBSD__) || defined(__CYGWIN__)
|| defined(__sun__)
)
LTTNG_HIDDEN
int lttcomm_setsockopt_creds_unix_sock(int sock)
{
LTTNG_HIDDEN
int lttcomm_setsockopt_creds_unix_sock(int sock)
{
This page took
0.033227 seconds
and
4
git commands to generate.