From 9354f2497de36d21ca5d78416041cff22517b35b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 11 Apr 2012 18:06:08 -0400 Subject: [PATCH] Fix consumer lttng_consumer_poll_socket poll revents check bug Was causing the sessiond to fail to receive streams under heavy load, because this test needs to be done with a mask rather than equality. Testing equality was failing as soon as POLLPRI (or any other flag) was set. Signed-off-by: Mathieu Desnoyers --- src/common/consumer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/consumer.c b/src/common/consumer.c index f81de8d55..74a9b0ad2 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -562,7 +562,7 @@ restart: perror("Poll error"); goto exit; } - if (consumer_sockpoll[0].revents == POLLIN) { + if (consumer_sockpoll[0].revents & POLLIN) { DBG("consumer_should_quit wake up"); goto exit; } -- 2.34.1