projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: poll and epoll fd set reallocation
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index 1de9cbadbd053749baa81d1a800975dd2bb22a8b..af99333c8d2ae1bacc73f7f4af5fcd231e79e104 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-2102,12
+2102,12
@@
void *consumer_thread_metadata_poll(void *data)
while (1) {
/* Only the metadata pipe is set */
while (1) {
/* Only the metadata pipe is set */
- if (
events.nb_fd
== 0 && consumer_quit == 1) {
+ if (
LTTNG_POLL_GETNB(&events)
== 0 && consumer_quit == 1) {
goto end;
}
restart:
goto end;
}
restart:
- DBG("Metadata poll wait with %d fd(s)",
events.nb_fd
);
+ DBG("Metadata poll wait with %d fd(s)",
LTTNG_POLL_GETNB(&events)
);
ret = lttng_poll_wait(&events, -1);
DBG("Metadata event catched in thread");
if (ret < 0) {
ret = lttng_poll_wait(&events, -1);
DBG("Metadata event catched in thread");
if (ret < 0) {
This page took
0.024666 seconds
and
4
git commands to generate.