httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@hyperreal.org
Subject cvs commit: apache-2.0/mpm/src/modules/mpm/prefork prefork.c
Date Sun, 25 Jul 1999 13:59:00 GMT
ben         99/07/25 06:58:59

  Modified:    mpm/src/modules/mpm/prefork prefork.c
  Log:
  Good grief! How hard is it to try _all_ the elements in a list?
  
  Revision  Changes    Path
  1.17      +4 -1      apache-2.0/mpm/src/modules/mpm/prefork/prefork.c
  
  Index: prefork.c
  ===================================================================
  RCS file: /export/home/cvs/apache-2.0/mpm/src/modules/mpm/prefork/prefork.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- prefork.c	1999/07/24 18:38:55	1.16
  +++ prefork.c	1999/07/25 13:58:58	1.17
  @@ -2061,6 +2061,7 @@
       struct sockaddr sa_client;
       ap_listen_rec *lr;
       ap_listen_rec *last_lr;
  +    ap_listen_rec *first_lr;
       pool *ptrans;
       conn_rec *current_conn;
       ap_iol *iol;
  @@ -2160,7 +2161,8 @@
   		else {
   		    lr = last_lr->next;
   		}
  -		while (lr != last_lr) {
  +		first_lr=lr;
  +		do {
   		    if (!lr) {
   			lr = ap_listeners;
   		    }
  @@ -2168,6 +2170,7 @@
   			goto got_listener;
   		    lr = lr->next;
   		}
  +		while (lr != first_lr);
   		continue;
   	got_listener:
   		last_lr = lr;
  
  
  

Mime
View raw message