Fix incorrect parenthesis for poll test in consumer
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 5 Nov 2011 17:57:01 +0000 (13:57 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 5 Nov 2011 17:57:01 +0000 (13:57 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-consumer/lttng-consumer.c

index 7644eac2cefccb7d223c8310c81f7289864f4461..de15dd3b72379276cd0d934e79f2435ef67dbb8a 100644 (file)
@@ -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++;
This page took 0.026445 seconds and 4 git commands to generate.