]> granicus.if.org Git - apache/commitdiff
clarify select() usage on Windows
authorAllan K. Edwards <ake@apache.org>
Wed, 6 Oct 2004 13:49:19 +0000 (13:49 +0000)
committerAllan K. Edwards <ake@apache.org>
Wed, 6 Oct 2004 13:49:19 +0000 (13:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105391 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/child.c

index 39f2fddb9aa44f80f1572e3ba82ee225934fb302..a407122d2dc3fa385afe0bb9350f952b6b397194 100644 (file)
@@ -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 */