#include <common/uri.h>
#include <common/utils.h>
+#include <common/compat/endian.h>
+
#include "fd-limit.h"
#include "jul-thread.h"
#include "lttng-sessiond.h"
ret = sock->ops->bind(sock);
if (ret < 0) {
- WARN("An other session daemon is using this JUL port. JUL support "
- "will be deactivated not interfering with the tracing.");
+ WARN("Another session daemon is using this JUL port. JUL support "
+ "will be deactivated to prevent interfering with the tracing.");
goto error;
}
size = new_sock->ops->recvmsg(new_sock, &msg, sizeof(msg), 0);
if (size < sizeof(msg)) {
- ret = -errno;
+ ret = -EINVAL;
goto error_socket;
}
pid = be32toh(msg.pid);