apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/network_io/unix sockets.c
Date Thu, 15 Apr 2004 20:17:58 GMT
jorton      2004/04/15 13:17:58

  Modified:    network_io/unix Tag: APR_0_9_BRANCH sockets.c
  Log:
  Backport from HEAD:
  
  * network_io/unix/sockets.c (apr_socket_accept): Move TPF check for
  accept returning zero out of httpd.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.110.2.3 +7 -0      apr/network_io/unix/sockets.c
  
  Index: sockets.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sockets.c,v
  retrieving revision 1.110.2.2
  retrieving revision 1.110.2.3
  diff -w -d -u -r1.110.2.2 -r1.110.2.3
  --- sockets.c	13 Feb 2004 09:33:51 -0000	1.110.2.2
  +++ sockets.c	15 Apr 2004 20:17:58 -0000	1.110.2.3
  @@ -167,6 +167,13 @@
       if ((*new)->socketdes < 0) {
           return errno;
       }
  +#ifdef TPF
  +    if ((*new)->socketdes == 0) { 
  +        /* 0 is an invalid socket for TPF */
  +        return APR_EINTR;
  +    }
  +#endif
  +
       *(*new)->local_addr = *sock->local_addr;
   
       /* The above assignment just overwrote the pool entry. Setting the local_addr 
  
  
  

Mime
View raw message