wrowe       2002/12/31 09:10:40

  Modified:    poll/unix poll.c
  Log:
    Fix apr_poll behavior on Darwin/Win32 (now passing testpoll.)
    We were getting spurious returned events because the select-based
    poll implementation wasn't zeroing out previous results before
    setting the current ones and returning.
  
  Submitted by: Garrett Rooney <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.33      +4 -0      apr/poll/unix/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/apr/poll/unix/poll.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- poll.c    20 Sep 2002 10:42:37 -0000      1.32
  +++ poll.c    31 Dec 2002 17:10:40 -0000      1.33
  @@ -275,6 +275,10 @@
       }
   #endif
   
  +    for (i = 0; i < *nsds; i++) {
  +      aprset[i].rtnevents = 0;
  +    }
  +
       (*nsds) = rv;
       if ((*nsds) == 0) {
           return APR_TIMEUP;
  
  
  

Reply via email to