From: Colm MacCarthaigh Date: Sat, 27 Aug 2005 23:05:42 +0000 (+0000) Subject: CGId keeps a copy of the listening sockets open, which interferes with a X-Git-Tag: 2.3.0~3056 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de0b459ab09ee3f1e5bf4eeb530eadec355e2e12;p=thirdparty%2Fapache%2Fhttpd.git CGId keeps a copy of the listening sockets open, which interferes with a graceful shutdown/start. Close the listening sockets on cgid start. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@241815 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 013b2010766..80ad1b4bbe7 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -591,6 +591,9 @@ static int cgid_server(void *data) 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");