Fix: poll and epoll fd set reallocation
[lttng-tools.git] / src / common / consumer.c
index 1de9cbadbd053749baa81d1a800975dd2bb22a8b..af99333c8d2ae1bacc73f7f4af5fcd231e79e104 100644 (file)
@@ -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) {
This page took 0.023555 seconds and 4 git commands to generate.