Skip to content

Instantly share code, notes, and snippets.

@chrisboulton
Last active December 21, 2015 08:19
Show Gist options
  • Save chrisboulton/6277227 to your computer and use it in GitHub Desktop.
Save chrisboulton/6277227 to your computer and use it in GitHub Desktop.
--- a/mod_fastcgi.c
+++ b/mod_fastcgi.c
@@ -160,6 +160,9 @@
const char *user, const char * const group, const unsigned long q_usec,
const unsigned long req_usec)
{
+ ap_log_error(FCGI_LOG_ERR, fcgi_apache_main_server,
+ "FastCGI: (Bigcommerce modification) Call to send_pm which has been disabled.");
+ return;
#ifdef WIN32
fcgi_pm_job *job = NULL;
@@ -329,6 +332,17 @@
ap_log_error(FCGI_LOG_ERR, s, "FastCGI: pipe() failed");
}
+ //
+ // We are not interested in the process manager, which is used to handle management
+ // of dynamic FastCGI applications where Apache is responsible for starting them.
+ // The PM seems to cause lots of problems randomly when restarting Apache. It's better
+ // for all of us if we pretended it never existed.
+ // - CB
+ //
+ close(fcgi_pm_pipe[0]);
+ return APCB_OK;
+ // End modification
+
/* Start the Process Manager */
#ifdef APACHE2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment