From c8148970e91586d11c1055bcb01789da2f285b98 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Tue, 5 Feb 2019 23:59:16 -0500 Subject: [PATCH] No need for events when using fd = -1 --- endlessh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endlessh.c b/endlessh.c index 0d98e35..6bc34e2 100644 --- a/endlessh.c +++ b/endlessh.c @@ -610,7 +610,7 @@ main(int argc, char **argv) if (queue->length < config.max_clients) pollvec_push(pollvec, server, POLLIN); else - pollvec_push(pollvec, -1, POLLIN); + pollvec_push(pollvec, -1, 0); /* Enqueue clients that are due for another message */ int timeout = -1;