Fix: LPOLLHUP and LPOLLERR when there is still data in pipe/socket
[lttng-tools.git] / src / bin / lttng-consumerd / health-consumerd.c
index e8afd963f7c058ee1cb258cc7db6def5ea48d76f..93737c5d311a01ff07bae1e0c78e29a1a871c551 100644 (file)
@@ -274,7 +274,8 @@ restart:
 
                        /* Event on the registration socket */
                        if (pollfd == sock) {
-                               if (revents & (LPOLLERR | LPOLLHUP | LPOLLRDHUP)) {
+                               if (revents & (LPOLLERR | LPOLLHUP | LPOLLRDHUP)
+                                               && !(revents & LPOLLIN)) {
                                        ERR("Health socket poll error");
                                        goto error;
                                }
This page took 0.026332 seconds and 4 git commands to generate.