httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: httpd-2.0/server/mpm/winnt child.c
Date Wed, 06 Oct 2004 13:49:19 GMT
ake         2004/10/06 06:49:19

  Modified:    server/mpm/winnt child.c
  Log:
  clarify select() usage on Windows
  
  Revision  Changes    Path
  1.40      +2 -1      httpd-2.0/server/mpm/winnt/child.c
  
  Index: child.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/winnt/child.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- child.c	5 Oct 2004 21:04:19 -0000	1.39
  +++ child.c	6 Oct 2004 13:49:19 -0000	1.40
  @@ -363,7 +363,8 @@
   	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 */            
  
  
  

Mime
View raw message