From e50085c705164114b3f4eb3efd4b2f7794a16163 Mon Sep 17 00:00:00 2001 From: "powwow@askgustav.com" Date: Sat, 18 Feb 2017 23:06:36 +0100 Subject: make sure to use the correct fdset in call to select() 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(); -- cgit v0.10.2