X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=af99333c8d2ae1bacc73f7f4af5fcd231e79e104;hb=d21b0d71990ac6ec4272c1f80f0ca544103628b3;hp=1de9cbadbd053749baa81d1a800975dd2bb22a8b;hpb=c617c0c651432f9d5ae7adf4c5c1a5fd92ad828e;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 1de9cbadb..af99333c8 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -2102,12 +2102,12 @@ void *consumer_thread_metadata_poll(void *data) while (1) { /* Only the metadata pipe is set */ - if (events.nb_fd == 0 && consumer_quit == 1) { + if (LTTNG_POLL_GETNB(&events) == 0 && consumer_quit == 1) { goto end; } restart: - DBG("Metadata poll wait with %d fd(s)", events.nb_fd); + DBG("Metadata poll wait with %d fd(s)", LTTNG_POLL_GETNB(&events)); ret = lttng_poll_wait(&events, -1); DBG("Metadata event catched in thread"); if (ret < 0) {