aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpowwow@askgustav.com <powwow@askgustav.com>2017-02-18 22:06:36 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2018-09-05 17:25:17 (GMT)
commite50085c705164114b3f4eb3efd4b2f7794a16163 (patch)
tree9fe62fe77c31e8f3fdc797731a7d86c428c4d787
parent8399b464f14f01df1ce35a55b10b59f3e2e52d83 (diff)
downloadpowwow-e50085c705164114b3f4eb3efd4b2f7794a16163.zip
powwow-e50085c705164114b3f4eb3efd4b2f7794a16163.tar.gz
powwow-e50085c705164114b3f4eb3efd4b2f7794a16163.tar.bz2
make sure to use the correct fdset in call to select()
-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();