All of lore.kernel.org
 help / color / mirror / Atom feed
* [lttng-tools 0/2] Fix various polling loops when using poll()
@ 2014-11-26 21:29 Philippe Proulx
  0 siblings, 0 replies; only message in thread
From: Philippe Proulx @ 2014-11-26 21:29 UTC (permalink / raw)
  To: lttng-dev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-26 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26 21:29 [lttng-tools 0/2] Fix various polling loops when using poll() Philippe Proulx

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.