From: Mathieu Desnoyers Date: Sat, 5 Nov 2011 17:57:01 +0000 (-0400) Subject: Fix incorrect parenthesis for poll test in consumer X-Git-Tag: v2.0-pre15~153 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=1c3c14ace23b807f049d036b5719093b3bdd6aa6 Fix incorrect parenthesis for poll test in consumer Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-consumer/lttng-consumer.c b/liblttng-consumer/lttng-consumer.c index 7644eac2c..de15dd3b7 100644 --- a/liblttng-consumer/lttng-consumer.c +++ b/liblttng-consumer/lttng-consumer.c @@ -845,8 +845,8 @@ void *lttng_consumer_thread_poll_fds(void *data) ERR("Polling fd %d tells fd is not open.", pollfd[i].fd); consumer_del_stream(local_stream[i]); num_hup++; - } else if ((pollfd[i].revents & POLLHUP && - !(pollfd[i].revents & POLLIN))) { + } else if ((pollfd[i].revents & POLLHUP) && + !(pollfd[i].revents & POLLIN)) { DBG("Polling fd %d tells it has hung up.", pollfd[i].fd); consumer_del_stream(local_stream[i]); num_hup++;