diff options
author | powwow@askgustav.com <powwow@askgustav.com> | 2017-02-18 22:06:36 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2018-09-05 17:25:17 (GMT) |
commit | e50085c705164114b3f4eb3efd4b2f7794a16163 (patch) | |
tree | 9fe62fe77c31e8f3fdc797731a7d86c428c4d787 | |
parent | 8399b464f14f01df1ce35a55b10b59f3e2e52d83 (diff) | |
download | powwow-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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(); |