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:21:32 GMT
bnicholes    2003/03/26 11:21:32

  Modified:    server/mpm/netware mpm_netware.c
  Log:
  Need to report a select() error vs a timeout.  Also avoid hogging the CPU on
  an error.
  
  Revision  Changes    Path
  1.68      +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.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- mpm_netware.c	18 Mar 2003 15:13:42 -0000	1.67
  +++ mpm_netware.c	26 Mar 2003 19:21:32 -0000	1.68
  @@ -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