]> granicus.if.org Git - apache/commit
core, MPMs unix: follow up to r1809881.
authorYann Ylavic <ylavic@apache.org>
Thu, 28 Sep 2017 11:08:09 +0000 (11:08 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 28 Sep 2017 11:08:09 +0000 (11:08 +0000)
commita16360a61f035c60b93e11ab8578c02a570fcec3
tree3885105f26238166244cb7d0e13c986c2c0f209a
parent13ceec01048b2fd00cbc5372407d760987f94e35
core, MPMs unix: follow up to r1809881.

Deregister all hooks first (in pre_cleanup), by doing it last we could still
have had them run when DSOs were unloaded.

Likewise, avoid double faults when handling fatal signals by restoring the
default handler before pconf is cleared (we can't ap_log_error there).

Finally, we need to ignore sig_term/restart (do nothing) when the main
process is exiting (i.e. ap_pglobal is destroyed), since retained_data are
freed.

Aimed to fix all faults in PR 61558.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1809973 13f79535-47bb-0310-9956-ffa450edef68
os/unix/unixd.c
server/main.c
server/mpm/event/event.c
server/mpm/motorz/motorz.c
server/mpm/prefork/prefork.c
server/mpm/worker/worker.c
server/mpm_unix.c