apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr/network_io/os2 poll.c
Date Mon, 20 Aug 2001 07:12:56 GMT
bjh         01/08/20 00:12:56

  Modified:    network_io/os2 poll.c
  Log:
  OS/2: Partial workaround for a bug/oddity of select(). When interrupted by
  a signal, it returns 0, as if a timeout occurred. If timeout was indefinite
  we can safely assume that it was in fact interrupted.
  
  Revision  Changes    Path
  1.25      +1 -1      apr/network_io/os2/poll.c
  
  Index: poll.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/os2/poll.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- poll.c	2001/08/18 04:36:48	1.24
  +++ poll.c	2001/08/20 07:12:55	1.25
  @@ -147,7 +147,7 @@
           for (i=0; i<pollfdset->num_total; i++) {
               pollfdset->r_socket_list[i] = -1;
           }
  -        return APR_TIMEUP;
  +        return timeout < 0 ? APR_EINTR : APR_TIMEUP;
       }
   
       (*nsds) = rv;
  
  
  

Mime
View raw message