From: David Goulet Date: Thu, 29 Aug 2013 14:38:12 +0000 (-0400) Subject: Fix: remove bad check after epoll wait in consumer X-Git-Tag: v2.2.4~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8d6144b81e91ea600cf04d9e8270069c7c5006fb;p=lttng-tools.git Fix: remove bad check after epoll wait in consumer The returned nb_fd value is the number of FD ready for the requested I/O so having and revents set to 0 is possible since not all fd are ready thus making this check irrelevant and actually ressource consuming. Signed-off-by: David Goulet --- diff --git a/src/common/consumer.c b/src/common/consumer.c index 786a1db7b..256c57a73 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2231,11 +2231,6 @@ restart: revents = LTTNG_POLL_GETEV(&events, i); pollfd = LTTNG_POLL_GETFD(&events, i); - /* Just don't waste time if no returned events for the fd */ - if (!revents) { - continue; - } - if (pollfd == lttng_pipe_get_readfd(ctx->consumer_metadata_pipe)) { if (revents & (LPOLLERR | LPOLLHUP )) { DBG("Metadata thread pipe hung up");