httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r241815 - /httpd/httpd/trunk/modules/generators/mod_cgid.c
Date Sat, 27 Aug 2005 23:05:45 GMT
Author: colm
Date: Sat Aug 27 16:05:42 2005
New Revision: 241815

URL: http://svn.apache.org/viewcvs?rev=241815&view=rev
Log:

CGId keeps a copy of the listening sockets open, which interferes with a 
graceful shutdown/start. Close the listening sockets on cgid start.


Modified:
    httpd/httpd/trunk/modules/generators/mod_cgid.c

Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/generators/mod_cgid.c?rev=241815&r1=241814&r2=241815&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_cgid.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_cgid.c Sat Aug 27 16:05:42 2005
@@ -591,6 +591,9 @@
     apr_signal(SIGCHLD, SIG_IGN); 
     apr_signal(SIGHUP, daemon_signal_handler);
 
+    /* Close our copy of the listening sockets */
+    ap_close_listeners();
+    
     if ((sd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
         ap_log_error(APLOG_MARK, APLOG_ERR, errno, main_server, 
                      "Couldn't create unix domain socket");



Mime
View raw message