From 5721ec1dcff4077b2c5a2936fbba6a9ed03cbddc Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 2 May 2014 00:18:41 +1000 Subject: [PATCH] Reset revents before polling --- src/connector.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connector.c b/src/connector.c index 92d6adc6..e8ebdbad 100644 --- a/src/connector.c +++ b/src/connector.c @@ -238,6 +238,7 @@ retry: HASH_ITER(fdhh, fdclients, client, tmp) { fds[nfds].fd = client->fd; fds[nfds].events = POLLIN; + fds[nfds].revents = 0; nfds++; } ck_runlock(&ci->lock);