From ec66d358ffbee70ad704de8e7a5bdd903ffca7bb Mon Sep 17 00:00:00 2001 From: "Allan K. Edwards" Date: Wed, 6 Oct 2004 13:49:19 +0000 Subject: [PATCH] clarify select() usage on Windows git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105391 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/child.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 39f2fddb9a..a407122d2d 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -363,7 +363,8 @@ static void win9x_accept(void * dummy) tv.tv_usec = 0; memcpy(&main_fds, &listenfds, sizeof(fd_set)); - rc = select((int)(listenmaxfd + 1), &main_fds, NULL, NULL, &tv); + /* First parameter of select() is ignored on Windows */ + rc = select(0, &main_fds, NULL, NULL, &tv); if (rc == 0 || (rc == SOCKET_ERROR && APR_STATUS_IS_EINTR(apr_get_netos_error()))) { count_select_errors = 0; /* reset count of errors */ -- 2.50.1