]> granicus.if.org Git - apache/commit
Fix crash accessing pollset on worker thread when child process is exiting.
authorJeff Trawick <trawick@apache.org>
Fri, 24 Sep 2010 11:25:25 +0000 (11:25 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 24 Sep 2010 11:25:25 +0000 (11:25 +0000)
commite5ab365322cd6ef16b63e26288f170aebbc31132
treee6e8f8ccd4c4c4c570f0d6b2307c91ee365bf272
parent8a840c12437f484f5f8b14b9881feda246fde69e
Fix crash accessing pollset on worker thread when child process is exiting.

The timeout mutex and pollset were allocated from the listener thread
pool.  During child process shutdown, the listener thread exits first
while any outstanding requests finish.  These objects need to be allocated
from pchild since the lifetime extends until the last worker thread has
finished.

Switch to pchild, and move init of these objects to the same place as
other thread-independent objects.

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