httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/main listen.c
Date Wed, 22 Mar 2000 10:37:28 GMT
trawick     00/03/22 02:37:28

  Modified:    src/main listen.c
  Log:
  change the error message logged for a bind() failure so that
  it shows the interface and port number; it is now very similar
  to the error message used in 1.3
  
  Revision  Changes    Path
  1.21      +6 -1      apache-2.0/src/main/listen.c
  
  Index: listen.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/listen.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- listen.c	2000/03/10 00:06:55	1.20
  +++ listen.c	2000/03/22 10:37:28	1.21
  @@ -77,8 +77,13 @@
       int one = 1;
       char addr[512];
       ap_status_t stat;
  +    ap_uint32_t port;
  +    char *ipaddr;
   
  -    ap_cpystrn(addr, "[@main/listen.c:make_sock(): inet_ntoa(server->sin_addr)]", sizeof
addr);
  +    ap_get_local_port(&port,s);
  +    ap_get_local_ipaddr(&ipaddr,s);
  +    ap_snprintf(addr, sizeof(addr), "address %s port %u", ipaddr,
  +		(unsigned) port);
   
       stat = ap_setsocketopt(s, APR_SO_REUSEADDR, one);
       if (stat != APR_SUCCESS && stat != APR_ENOTIMPL) {
  
  
  

Mime
View raw message