On Windows fcgid crashes apache when apache do a graceful restart (httpd -k restart). Here is a patch that should fix that. This patch in inspired from Tom Dovovan.
Index: modules/fcgid/fcgid_pm_main.c
===================================================================
--- modules/fcgid/fcgid_pm_main.c (revision 1037552)
+++ modules/fcgid/fcgid_pm_main.c (working copy)
@@ -375,7 +375,9 @@
proc->diewhy = FCGID_DIE_SHUTDOWN;
proc_print_exit_info(proc, exitcode, exitwhy,
main_server);
- apr_pool_destroy(proc->proc_pool);
+ #ifndef Win32
+ apr_pool_destroy(proc->proc_pool);
+ #endif
proc->proc_pool = NULL;
return 1;
}
Index: modules/fcgid/fcgid_pm_win.c
===================================================================
--- modules/fcgid/fcgid_pm_win.c (revision 1037552)
+++ modules/fcgid/fcgid_pm_win.c (working copy)
@@ -123,7 +123,9 @@
"mod_fcgid: can't create wake up thread");
exit(1);
}
-
+ apr_pool_cleanup_register(pconf, main_server,
+ procmgr_stop_procmgr, apr_pool_cleanup_null);
+
return APR_SUCCESS;
}
@@ -249,8 +251,6 @@
apr_status_t
procmgr_child_init(server_rec * main_server, apr_pool_t * pchild)
{
- apr_pool_cleanup_register(pchild, main_server,
- procmgr_stop_procmgr, apr_pool_cleanup_null);
return APR_SUCCESS;
}
Download this patch