Create stream files relative to a stream's current trace chunk
[lttng-tools.git] / src / common / consumer / consumer-metadata-cache.c
index 5e9dca3ea27bf64fa5987b4e580d6b46c7f168d3..65702a2296e1b908702453f9a03b0f14a2bb91ab 100644 (file)
@@ -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:
This page took 0.023736 seconds and 4 git commands to generate.