X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Funix.c;h=15c31746638e8b1c811c9f00c56e106cbc12024f;hb=b5eaa66e68b22f0e4cae96db8ef0bc2d12d14ed4;hp=d37313c5aed87ee6600b1953ce6ba84a97d6f660;hpb=d0d97aef15ec465559ff707a47a7f206fdbc45b2;p=lttng-tools.git diff --git a/src/common/unix.c b/src/common/unix.c index d37313c5a..15c317466 100644 --- a/src/common/unix.c +++ b/src/common/unix.c @@ -242,12 +242,9 @@ retry: if (errno == EINTR) { goto retry; } else { - /* - * Only warn about EPIPE when quiet mode is - * deactivated. - * We consider EPIPE as expected. - */ - if (errno != EPIPE || !lttng_opt_quiet) { + /* We consider EPIPE and EAGAIN as expected. */ + if (!lttng_opt_quiet && + (errno != EPIPE && errno != EAGAIN)) { PERROR("recvmsg"); } goto end; @@ -330,12 +327,9 @@ retry: if (errno == EINTR) { goto retry; } else { - /* - * Only warn about EPIPE when quiet mode is - * deactivated. - * We consider EPIPE as expected. - */ - if (errno != EPIPE || !lttng_opt_quiet) { + /* We consider EPIPE and EAGAIN as expected. */ + if (!lttng_opt_quiet && + (errno != EPIPE && errno != EAGAIN)) { PERROR("sendmsg"); } goto end;