X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=be984a49270fefbba0b55bccd8ebf897ceea4ce7;hp=1af69ef93015c7e397c8028781dc3c97895c1790;hb=c5c45efab4fc692edd8fd4db88c0df1d5f6cefff;hpb=9dd26bb934086fdea165a1cd5d86adeeb5629643 diff --git a/src/common/consumer.c b/src/common/consumer.c index 1af69ef93..be984a492 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -1435,7 +1435,13 @@ ssize_t lttng_consumer_on_read_subbuffer_mmap( } while (ret < 0 && errno == EINTR); DBG("Consumer mmap write() ret %zd (len %lu)", ret, len); if (ret < 0) { - PERROR("Error in file write"); + /* + * This is possible if the fd is closed on the other side (outfd) + * or any write problem. It can be verbose a bit for a normal + * execution if for instance the relayd is stopped abruptly. This + * can happen so set this to a DBG statement. + */ + DBG("Error in file write mmap"); if (written == 0) { written = ret; }