X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-epoll.c;h=e1672c4c3178afbbce32acddebf2b30cea66fe09;hb=9ddba5259d1cb5f9f5ef03ea1e3276082c7e6b80;hp=939aaace3c7c30272bc70f894a0a1bde97a09157;hpb=d9c175ed69050fefd87aa45c0d7e8be02b83f56c;p=lttng-tools.git diff --git a/src/common/compat/compat-epoll.c b/src/common/compat/compat-epoll.c index 939aaace3..e1672c4c3 100644 --- a/src/common/compat/compat-epoll.c +++ b/src/common/compat/compat-epoll.c @@ -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: