Fix: force the poll() return value to be nb_fd
[lttng-tools.git] / src / common / compat / compat-epoll.c
index 939aaace3c7c30272bc70f894a0a1bde97a09157..e1672c4c3178afbbce32acddebf2b30cea66fe09 100644 (file)
@@ -188,6 +188,10 @@ int compat_epoll_wait(struct lttng_poll_event *events, int timeout)
                goto error;
        }
 
+       /*
+        * Since the returned events are set sequentially in the "events" structure
+        * we only need to return the epoll_wait value and iterate over it.
+        */
        return ret;
 
 error:
This page took 0.02285 seconds and 4 git commands to generate.