From: Allan K. Edwards Date: Wed, 6 Oct 2004 13:49:19 +0000 (+0000) Subject: clarify select() usage on Windows X-Git-Tag: 2.1.1~169 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec66d358ffbee70ad704de8e7a5bdd903ffca7bb;p=apache clarify select() usage on Windows git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105391 13f79535-47bb-0310-9956-ffa450edef68 --- 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 */