diff options
| author | 2008-07-16 10:33:44 +0000 | |
|---|---|---|
| committer | 2008-07-16 10:33:44 +0000 | |
| commit | 3085ff08dd91335ab1ac10a681b3ec46255316cd (patch) | |
| tree | 24889983b578b06e634d874a59220d9f7deb2c1c /usr.sbin/bind/lib/isc/unix/app.c | |
| parent | Cleanup #define maze leftover from pftop compatibility. (diff) | |
| download | wireguard-openbsd-3085ff08dd91335ab1ac10a681b3ec46255316cd.tar.xz wireguard-openbsd-3085ff08dd91335ab1ac10a681b3ec46255316cd.zip | |
Dynamically allocate fd_sets so we are not limited to FD_SETSIZE
connections. With help from djm@. OK djm@
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/app.c')
| -rw-r--r-- | usr.sbin/bind/lib/isc/unix/app.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/app.c b/usr.sbin/bind/lib/isc/unix/app.c index 0a1e341f74a..a575f20b49e 100644 --- a/usr.sbin/bind/lib/isc/unix/app.c +++ b/usr.sbin/bind/lib/isc/unix/app.c @@ -303,7 +303,7 @@ evloop() { int n; isc_time_t when, now; struct timeval tv, *tvp; - fd_set readfds, writefds; + fd_set *readfds, *writefds; int maxfd; isc_boolean_t readytasks; isc_boolean_t call_timer_dispatch = ISC_FALSE; @@ -332,7 +332,7 @@ evloop() { } isc__socketmgr_getfdsets(&readfds, &writefds, &maxfd); - n = select(maxfd, &readfds, &writefds, NULL, tvp); + n = select(maxfd, readfds, writefds, NULL, tvp); if (n == 0 || call_timer_dispatch) { /* @@ -352,7 +352,7 @@ evloop() { isc__timermgr_dispatch(); } if (n > 0) - (void)isc__socketmgr_dispatch(&readfds, &writefds, + (void)isc__socketmgr_dispatch(readfds, writefds, maxfd); (void)isc__taskmgr_dispatch(); |
