Fix: force the poll() return value to be nb_fd
authorDavid Goulet <dgoulet@efficios.com>
Mon, 17 Dec 2012 17:19:56 +0000 (12:19 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 17 Dec 2012 17:45:50 +0000 (12:45 -0500)
commit9ddba5259d1cb5f9f5ef03ea1e3276082c7e6b80
tree08875b79f23d87c09a6c8888dd9412813657bee3
parentd9c175ed69050fefd87aa45c0d7e8be02b83f56c
Fix: force the poll() return value to be nb_fd

With poll(), we have to iterate over all fd in the pollset since it is
handled in user space where we don't have to with epoll.o

This is a first patch to fix the fact that we should iterate over the
number of fd the lttng_poll_wait() call returns which is for epoll the
number of returned events and with poll the whole set of fd.

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/compat/compat-epoll.c
src/common/compat/compat-poll.c
This page took 0.024595 seconds and 4 git commands to generate.