http://people.apache.org/~chrisd/patches/mod_dbd_pools_groups/mpm_child_init-netware-2.2.x.patch
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@563195
13f79535-47bb-0310-9956-
ffa450edef68
NXThreadExit((void*)&code);
}
+/* proper cleanup when returning from ap_mpm_run() */
+static void mpm_main_cleanup(void)
+{
+ if (pmain) {
+ apr_pool_destroy(pmain);
+ }
+}
+
AP_DECLARE(apr_status_t) ap_mpm_query(int query_code, int *result)
{
switch(query_code){
apr_thread_yield();
}
+ mpm_main_cleanup();
return 1;
}
else { /* the only other way out is a restart */
printf ("\nRestarting...\n");
}
+ mpm_main_cleanup();
return 0;
}