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/src/lib/apr/network_io/unix poll.c
Date Sun, 10 Oct 1999 13:15:58 GMT
ben         99/10/10 06:15:58

  Modified:    src/lib/apr/network_io/unix poll.c
  Log:
  Use the correct size for the pollset.
  
  Revision  Changes    Path
  1.10      +3 -3      apache-2.0/src/lib/apr/network_io/unix/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /export/home/cvs/apache-2.0/src/lib/apr/network_io/unix/poll.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- poll.c	1999/10/08 20:04:17	1.9
  +++ poll.c	1999/10/10 13:15:58	1.10
  @@ -176,7 +176,7 @@
       pollset = (struct pollfd *)ap_palloc(aprset->cntxt, 
                                            sizeof(struct pollfd) * (*nsds));
   
  -    for (i = 0; i < (*nsds); i++) {
  +    for (i = 0; i < aprset->curpos; i++) {
           pollset[i].fd = aprset->sock[i];
           pollset[i].events = aprset->events[i];
       }
  @@ -185,10 +185,10 @@
           timeout *= 1000;
       }
   
  -    rv = poll(pollset, (*nsds), timeout);
  +    rv = poll(pollset, aprset->curpos, timeout);
       (*nsds) = rv;
       
  -    for (i = 0; i < (*nsds); i++) {
  +    for (i = 0; i < aprset->curpos; i++) {
           aprset->revents[i] = get_revent(pollset[i].revents);
       }
       
  
  
  

Mime
View raw message