aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 508015a..c20180b 100644
--- a/main.c
+++ b/main.c
@@ -516,8 +516,6 @@ static void mainloop __P0 (void)
vtime *timeout;
for (;;) {
- readfds = fdset;
-
tcp_fd = tcp_main_fd;
exec_delays();
@@ -539,7 +537,8 @@ static void mainloop __P0 (void)
error = now_updated = 0;
- err = select(tcp_max_fd+1, &readfds, NULL, NULL, timeout);
+ readfds = fdset;
+ err = select(tcp_max_fd+1, &readfds, NULL, NULL, timeout);
prompt_reset_iac();