mirror of
https://github.com/apache/httpd.git
synced 2025-11-05 05:30:39 +03:00
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
This commit is contained in:
@@ -293,13 +293,13 @@ API_EXPORT_NONSTD(int) main(int argc, char *argv[])
|
||||
|
||||
g_pHookPool=pglobal;
|
||||
|
||||
ap_setup_prelinked_modules(process);
|
||||
|
||||
ap_create_context(&pcommands, pglobal);
|
||||
ap_server_pre_read_config = ap_make_array(pcommands, 1, sizeof(char *));
|
||||
ap_server_post_read_config = ap_make_array(pcommands, 1, sizeof(char *));
|
||||
ap_server_config_defines = ap_make_array(pcommands, 1, sizeof(char *));
|
||||
|
||||
ap_setup_prelinked_modules();
|
||||
|
||||
while ((c = getopt(argc, argv, "C:c:d:f:vVlLth")) != -1) {
|
||||
char **new;
|
||||
switch (c) {
|
||||
|
||||
Reference in New Issue
Block a user