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 Wed, 10 Mar 2004 20:58:34 GMT
jorton      2004/03/10 12:58:34

  Modified:    network_io/unix sockets.c
  Log:
  * network_io/unix/sockets.c (apr_socket_accept): Move TPF check for
  accept returning zero out of httpd.
  
  Revision  Changes    Path
  1.120     +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.119
  retrieving revision 1.120
  diff -w -d -u -r1.119 -r1.120
  --- sockets.c	13 Feb 2004 09:38:33 -0000	1.119
  +++ sockets.c	10 Mar 2004 20:58:34 -0000	1.120
  @@ -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