]> granicus.if.org Git - apache/commit
mpm_unix(es): cleanup properly on exit in one_process mode.
authorYann Ylavic <ylavic@apache.org>
Mon, 29 Jan 2018 17:00:23 +0000 (17:00 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 29 Jan 2018 17:00:23 +0000 (17:00 +0000)
commit7fa2267d94367c44ed663b4a88572ef8b81d9ee2
tree51586233a12d9d544379da8a72ddad2ba0696f4d
parentb4b720bbfe373b41797c40d98861bb3cc2550674
mpm_unix(es): cleanup properly on exit in one_process mode.

We can't destroy ap_pglobal in the MPMs because clean_child_exit() runs in
a DSO which would be unloaded under us.

So we defer an ap_terminate() with atexit() in ap_unixd_mpm_set_signals(),
all this is static/builtin code in "os/unix/unixd.c".

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1822537 13f79535-47bb-0310-9956-ffa450edef68
os/unix/unixd.c