apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/poll/os2 pollset.c
Date Sat, 04 Jan 2003 00:22:29 GMT
bjh         2003/01/03 16:22:28

  Modified:    poll/os2 pollset.c
  Log:
  OS/2: In apr_pollset_poll(), set the num value to 0 on error or time out.
  
  Revision  Changes    Path
  1.4       +1 -1      apr/poll/os2/pollset.c
  
  Index: pollset.c
  ===================================================================
  RCS file: /home/cvs/apr/poll/os2/pollset.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- pollset.c	1 Jan 2003 00:01:54 -0000	1.3
  +++ pollset.c	4 Jan 2003 00:22:28 -0000	1.4
  @@ -205,6 +205,7 @@
   
       pollresult = alloca(sizeof(int) * pollset->num_total);
       memcpy(pollresult, pollset->pollset, sizeof(int) * pollset->num_total);
  +    (*num) = 0;
   
       if (timeout > 0) {
           timeout /= 1000;
  @@ -223,7 +224,6 @@
       read_pos = 0;
       write_pos = pollset->num_read;
       except_pos = pollset->num_read + pollset->num_write;
  -    (*num) = 0;
   
       for (i = 0; i < pollset->nelts; i++) {
           int rtnevents = 0;
  
  
  

Mime
View raw message