mirror of
https://github.com/skeeto/endlessh.git
synced 2025-08-19 01:35:54 +02:00
No need for events when using fd = -1
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user