of memory management mutexes is longer than the lifetime of
managed memory. APR apps must now call ap_terminate().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84846
13f79535-47bb-0310-9956-
ffa450edef68
static void destroy_and_exit_process(process_rec *process, int process_exit_value)
{
ap_destroy_pool(process->pool); /* and destroy all descendent pools */
+ ap_terminate();
exit(process_exit_value);
}
ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, NULL,
"ap_create_context() failed to create "
"initial context");
+ ap_terminate();
exit(1);
}
ap_context_t *pcommands; /* Pool for -C and -c switches */
module **mod;
+#ifndef WIN32 /* done in main_win32.c */
ap_initialize();
+#endif
process = create_process(argc, (const char **)argv);
pglobal = process->pool;
pconf = process->pconf;