From f41de3405cf7a0345920d0dccf46826618bfb88c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 21 Dec 1998 03:31:36 +0000 Subject: cheaper select() call --- gnu/usr.bin/lynx/src/LYUtils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/usr.bin/lynx/src/LYUtils.c b/gnu/usr.bin/lynx/src/LYUtils.c index c0d9ebc89a1..14643564843 100644 --- a/gnu/usr.bin/lynx/src/LYUtils.c +++ b/gnu/usr.bin/lynx/src/LYUtils.c @@ -2091,11 +2091,11 @@ PUBLIC int HTCheckForInterrupt NOARGS FD_SET(0, &readfds); #ifdef SOCKS if (socks_flag) - ret = Rselect(FD_SETSIZE, (void *)&readfds, NULL, NULL, + ret = Rselect(1, (void *)&readfds, NULL, NULL, &socket_timeout); else #endif /* SOCKS */ - ret = select(FD_SETSIZE, (void *)&readfds, NULL, NULL, + ret = select(1, (void *)&readfds, NULL, NULL, &socket_timeout); /** Suspended? **/ -- cgit v1.2.3