]> granicus.if.org Git - apache/commit
MPMs: early initialize scoreboard's child generation number.
authorYann Ylavic <ylavic@apache.org>
Wed, 29 Aug 2018 12:27:31 +0000 (12:27 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 29 Aug 2018 12:27:31 +0000 (12:27 +0000)
commit972ad6c66d7f67c847ada45c050e031a88774489
tree0f4c1291eaaf3a3fb1b63f0511d67793ed25e174
parent260f53e67ac6c31d17f8c41d0dd4297912e4ca5f
MPMs: early initialize scoreboard's child generation number.

Since [mpm]_note_child_killed uses the scoreboard's generation number for
child_status hook (MPM_CHILD_EXITED), we must initialize it early (i.e. in
[mpm]_note_child_started where MPM_CHILD_STARTED is set) to avoid race
conditions on restart (e.g. storm/loop of restarts) leading to AH00546.

PR 62658.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1839571 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/event/event.c
server/mpm/motorz/motorz.c
server/mpm/netware/mpm_netware.c
server/mpm/prefork/prefork.c
server/mpm/winnt/mpm_winnt.c
server/mpm/worker/worker.c