projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: compat poll: add missing empty revents checks
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-thread.c
diff --git
a/src/bin/lttng-sessiond/ust-thread.c
b/src/bin/lttng-sessiond/ust-thread.c
index d92c1f9082882b428886edf8df89d31e10ee713b..6f4295db77833416893a16ce0b16288f04b87d3d 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-thread.c
+++ b/
src/bin/lttng-sessiond/ust-thread.c
@@
-92,6
+92,11
@@
restart:
revents = LTTNG_POLL_GETEV(&events, i);
pollfd = LTTNG_POLL_GETFD(&events, i);
revents = LTTNG_POLL_GETEV(&events, i);
pollfd = LTTNG_POLL_GETFD(&events, i);
+ if (!revents) {
+ /* No activity for this FD (poll implementation). */
+ continue;
+ }
+
/* Thread quit pipe has been closed. Killing thread. */
ret = sessiond_check_thread_quit_pipe(pollfd, revents);
if (ret) {
/* Thread quit pipe has been closed. Killing thread. */
ret = sessiond_check_thread_quit_pipe(pollfd, revents);
if (ret) {
This page took
0.025488 seconds
and
5
git commands to generate.