[lttng-dev] [lttng-tools 0/2] Fix various polling loops when using poll()
Philippe Proulx
eeppeliteloop at gmail.com
Wed Nov 26 16:29:17 EST 2014
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
More information about the lttng-dev
mailing list