X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-metadata-cache.c;h=65702a2296e1b908702453f9a03b0f14a2bb91ab;hb=d186e4cbbca201936132f3b6aad1710e35dec373;hp=5e9dca3ea27bf64fa5987b4e580d6b46c7f168d3;hpb=9dd04ae3e2e5ef924839f7209b9c7d693787627e;p=lttng-tools.git diff --git a/src/common/consumer/consumer-metadata-cache.c b/src/common/consumer/consumer-metadata-cache.c index 5e9dca3ea..65702a229 100644 --- a/src/common/consumer/consumer-metadata-cache.c +++ b/src/common/consumer/consumer-metadata-cache.c @@ -120,10 +120,20 @@ int consumer_metadata_wakeup_pipe(const struct lttng_consumer_channel *channel) write_ret = lttng_write(channel->metadata_stream->ust_metadata_poll_pipe[1], &dummy, 1); if (write_ret < 1) { - PERROR("Wake-up UST metadata pipe"); - ret = -1; - goto end; - } + if (errno == EWOULDBLOCK) { + /* + * This is fine, the metadata poll thread + * is having a hard time keeping-up, but + * it will eventually wake-up and consume + * the available data. + */ + ret = 0; + } else { + PERROR("Wake-up UST metadata pipe"); + ret = -1; + goto end; + } + } } end: