httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/netware mpm_netware.c
Date Wed, 26 Mar 2003 19:22:22 GMT
bnicholes    2003/03/26 11:22:22

  Modified:    server/mpm/netware Tag: APACHE_2_0_BRANCH mpm_netware.c
  Log:
  Need to report a select() error vs a timeout.  Also avoid hogging the CPU on
  an error.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.62.2.6  +7 -1      httpd-2.0/server/mpm/netware/mpm_netware.c
  
  Index: mpm_netware.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/netware/mpm_netware.c,v
  retrieving revision 1.62.2.5
  retrieving revision 1.62.2.6
  diff -u -r1.62.2.5 -r1.62.2.6
  --- mpm_netware.c	18 Mar 2003 15:14:03 -0000	1.62.2.5
  +++ mpm_netware.c	26 Mar 2003 19:22:22 -0000	1.62.2.6
  @@ -418,8 +418,14 @@
               memcpy(&main_fds, &listenfds, sizeof(fd_set));
               srv = select(listenmaxfd + 1, &main_fds, NULL, NULL, &tv);
   
  -            if (srv <= 0)
  +            if (srv <= 0) {
  +                if (srv < 0) {
  +                    ap_log_error(APLOG_MARK, APLOG_NOTICE, apr_get_netos_error(), ap_server_conf,
  +                        "select() failed on listen socket");
  +                    apr_thread_yield();
  +                }
                   continue;
  +            }
   
               /* remember the last_lr we searched last time around so that
               we don't end up starving any particular listening socket */
  
  
  

Mime
View raw message