summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index 389173f..52789df 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1045,6 +1045,7 @@ loop(void)
FD_ZERO(&rfds);
+ fdmax = -1;
for (i = 0; i < LEN(gslots); i++) {
FD_SET(gslots[i].fd[IN], &rfds);
if (gslots[i].fd[IN] > fdmax)