We can't destroy ap_pglobal because clean_child_exit() runs in DSO which would
be unloaded under us, so use atexit() to defer the final apr_terminate().
[Reverted by
1822535]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1814112 13f79535-47bb-0310-9956-
ffa450edef68
if (one_process) {
event_note_child_killed(/* slot */ 0, 0, 0);
+ atexit(apr_terminate);
}
exit(code);
if (one_process) {
prefork_note_child_killed(/* slot */ 0, 0, 0);
+ atexit(apr_terminate);
}
ap_mpm_pod_close(my_bucket->pod);
if (one_process) {
worker_note_child_killed(/* slot */ 0, 0, 0);
+ atexit(apr_terminate);
}
exit(code);