When disabling epoll (--disable-epoll), poll() is used instead of epoll_wait() thanks to the compat layer. While epoll_wait() only returns the file descriptors that are ready, with poll() you need to check all file descriptors and process only those which have revents flags.
This patchset fixes a few of those polling loops in LTTng-tools where it is assumed that revents is not 0 (epoll_wait() behaviour). Philippe Proulx (2): Fix: sessiond: revents may be 0 when using poll() Fix: relayd: revents may be 0 when using poll() src/bin/lttng-relayd/main.c | 5 +++++ src/bin/lttng-sessiond/ht-cleanup.c | 5 +++++ src/bin/lttng-sessiond/main.c | 10 ++++++++++ src/bin/lttng-sessiond/ust-thread.c | 5 +++++ 4 files changed, 25 insertions(+) -- 2.1.3 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
