]> granicus.if.org Git - apache/commit
Fix a segfault in threaded.c caused by passing uninitialized
authorJeff Trawick <trawick@apache.org>
Thu, 26 Jul 2001 18:11:53 +0000 (18:11 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 26 Jul 2001 18:11:53 +0000 (18:11 +0000)
commit943758e37019bfa1a0df596aa5428e9b751d7435
tree98222d43b7bdd4d6d027ff1517bb500ff7dfb788
parent53582d5615cba1731e93070091f734df82c3808e
Fix a segfault in threaded.c caused by passing uninitialized
apr_thread_t * to apr_thread_join().  Now we clear the array
of apr_thread_t * initially so we can track which threads we
actually created.

Other changes:

don't clobber storage by passing bogus array entry as 1st
parameter to apr_thread_create() to create the start_threads()
thread

join up with the start_threads() thread at termination so that
it is cleaned up and so that no worker threads are still being
created

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