]> granicus.if.org Git - apache/commit
Well this was thought provoking.
authorBen Hyde <bhyde@apache.org>
Thu, 7 Oct 1999 20:48:26 +0000 (20:48 +0000)
committerBen Hyde <bhyde@apache.org>
Thu, 7 Oct 1999 20:48:26 +0000 (20:48 +0000)
commitcd06de1ce37c053f288ba65e5c101e7be3c1e18c
tree0ac47d9a32d354c1bfd1457c978fdaf61008ff5b
parent2921356fcf3ffbfcae5190e073ab4b005b0502c7
Well this was thought provoking.

Drive out the use of malloc in two places.

In listen.c, using the global process pool instead.  That changes the
API into listen so that a process is passed in rather than the config
pool.  That's all was easy.

The pain is propogating a change into all N of the mpm, they
are all similar but different in their use of listen.c  There
is a lot to dislike about similar but code scattered code.

I changed the N setup_listener routines, they now take only
the server since they can dig the config and global pool
out of there.

Free today: ap_setup_prelinked_modules now takes the process so it
can allocate it's table in the process's pool rathern than use
malloc.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83943 13f79535-47bb-0310-9956-ffa450edef68
include/ap_listen.h
include/http_config.h
server/config.c
server/listen.c
server/main.c
server/mpm/dexter/dexter.c
server/mpm/mpmt_pthread/mpmt_pthread.c
server/mpm/prefork/prefork.c
server/mpm/spmt_os2/spmt_os2.c
server/mpm/winnt/mpm_winnt.c