httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_cgid.c
Date Tue, 29 Jun 2004 13:48:20 GMT
martin      2004/06/29 06:48:20

  Modified:    modules/generators mod_cgid.c
  Log:
  Let CGI daemon die if the network layer has been shut down (problem noticed on BS2000/OSD)
  
  Revision  Changes    Path
  1.169     +6 -0      httpd-2.0/modules/generators/mod_cgid.c
  
  Index: mod_cgid.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v
  retrieving revision 1.168
  retrieving revision 1.169
  diff -u -u -r1.168 -r1.169
  --- mod_cgid.c	30 Mar 2004 10:57:30 -0000	1.168
  +++ mod_cgid.c	29 Jun 2004 13:48:20 -0000	1.169
  @@ -641,6 +641,12 @@
           len = sizeof(unix_addr);
           sd2 = accept(sd, (struct sockaddr *)&unix_addr, &len);
           if (sd2 < 0) {
  +#if defined(ENETDOWN)
  +            if (errno == ENETDOWN) {
  +                /* The network has been shut down, no need to continue. Die gracefully
*/
  +		++daemon_should_exit;
  +	    }
  +#endif
               if (errno != EINTR) {
                   ap_log_error(APLOG_MARK, APLOG_ERR, errno, 
                                (server_rec *)data,
  
  
  

Mime
View raw message