mirror of
https://github.com/skeeto/endlessh.git
synced 2024-05-19 06:49:58 +00: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)
|
if (queue->length < config.max_clients)
|
||||||
pollvec_push(pollvec, server, POLLIN);
|
pollvec_push(pollvec, server, POLLIN);
|
||||||
else
|
else
|
||||||
pollvec_push(pollvec, -1, POLLIN);
|
pollvec_push(pollvec, -1, 0);
|
||||||
|
|
||||||
/* Enqueue clients that are due for another message */
|
/* Enqueue clients that are due for another message */
|
||||||
int timeout = -1;
|
int timeout = -1;
|
||||||
|
Reference in New Issue
Block a user