X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fcompat-poll.c;h=bacd96e842be04c0719f740205e42852972b5f8e;hp=157a2d79de950a25e051df3875071586344f32b3;hb=9ddba5259d1cb5f9f5ef03ea1e3276082c7e6b80;hpb=d9c175ed69050fefd87aa45c0d7e8be02b83f56c diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c index 157a2d79d..bacd96e84 100644 --- a/src/common/compat/compat-poll.c +++ b/src/common/compat/compat-poll.c @@ -164,7 +164,11 @@ int compat_poll_wait(struct lttng_poll_event *events, int timeout) goto error; } - return ret; + /* + * poll() should always iterate on all FDs since we handle the pollset in + * user space and after poll returns, we have to try every fd for a match. + */ + return events->nb_fd; error: return -1;