From 75f065d0222b87cf334094fff13f112c4c792754 Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Thu, 14 Jul 2016 11:06:14 -0700
Subject: [PATCH] Correct direction of inequality

---
 src/core/lib/iomgr/ev_epoll_linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/lib/iomgr/ev_epoll_linux.c b/src/core/lib/iomgr/ev_epoll_linux.c
index 4282d01a2b..633d480347 100644
--- a/src/core/lib/iomgr/ev_epoll_linux.c
+++ b/src/core/lib/iomgr/ev_epoll_linux.c
@@ -517,7 +517,7 @@ static polling_island *polling_island_create(grpc_exec_ctx *exec_ctx,
 
 done:
   if (*error != GRPC_ERROR_NONE) {
-    if (pi->epoll_fd < 0) {
+    if (pi->epoll_fd >= 0) {
       close(pi->epoll_fd);
     }
     if (pi->workqueue != NULL) {
-- 
GitLab