Acked-by: David Goulet <dgoulet@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ret = sendmsg(sock, &msg, 0);
if (ret < 0) {
ret = sendmsg(sock, &msg, 0);
if (ret < 0) {
+ /*
+ * Only warn about EPIPE when quiet mode is deactivated.
+ * We consider EPIPE as expected.
+ */
+ if (errno != EPIPE || !opt_quiet) {
+ PERROR("sendmsg");
+ }
ret = sendmsg(sock, &msg, 0);
if (ret < 0) {
ret = sendmsg(sock, &msg, 0);
if (ret < 0) {
+ /*
+ * Only warn about EPIPE when quiet mode is deactivated.
+ * We consider EPIPE as expected.
+ */
+ if (errno != EPIPE || !opt_quiet) {
+ PERROR("sendmsg");
+ }
ret = sendmsg(sock, &msg, 0);
if (ret < 0) {
ret = sendmsg(sock, &msg, 0);
if (ret < 0) {
+ /*
+ * Only warn about EPIPE when quiet mode is deactivated.
+ * We consider EPIPE as expected.
+ */
+ if (errno != EPIPE || !opt_quiet) {
+ PERROR("sendmsg");
+ }
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;
int main(int argc, char **argv)
{
struct lttng_handle *handle = NULL;