]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mpm_prefork: Do not access the POD in ONE_PROCESS mode.
authorYann Ylavic <ylavic@apache.org>
Thu, 16 Jun 2022 13:54:39 +0000 (13:54 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 16 Jun 2022 13:54:39 +0000 (13:54 +0000)
commit2891153f6b4a6314efaca94bd7d8bdccb0c96daf
treedf49043a45d5d60d3983a744b9d00ffee469cb32
parentd3d3c599def0bd261b26c68ac60f4e02310fd52c
mpm_prefork: Do not access the POD in ONE_PROCESS mode.

There is no POD created in ONE_PROCESS mode, so avoid crashing in child_main()
and clean_child_exit().

While at it, remove a dead code path in prefork_run() which is never reached
since the one_process path already returns/exits above.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901974 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/prefork/prefork.c