httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@telebusiness.co.nz>
Subject Re: [PATCH] add -C and -c switches
Date Tue, 06 Jan 1998 20:04:58 GMT
Ben Laurie wrote:

> Doug MacEachern wrote:
> >
> > Here's the patch to add -C (command for pre read config) and -c (post
> > read config).
> > It works fine for everything I've tried, except what I was trying to do
> > with -MApache::httpd_conf :-(  The s->lookup_defaults pointer seems to
> > smashed inside handle_command() before it's passed to
> > invoke_command().   I don't know yet if it's a problem with mod_perl or
> > apache, calling perl_cmd_module() directly works fine (instead of
> > handle_command).   I'll dig into it more sometime this week, any
> > thoughts in the meantime would be great.
>
> For this to be properly useful, you need to allow for arbitrary numbers
> of commands, not just a single one.

I agree, but this comment in http_conf_globals.h threw me off:
/* Trying to allocate these in the config pool gets us into some *nasty*
 * chicken-and-egg problems in http_main.c --- where do you stick them
 * when pconf gets cleared?  Better to just allocate a little space
 * statically...
 */

If I want to use pstrcat or use some other pool function in this area of
http_main, which, if any, pool* can I use?  Other recommendations?

-Doug


Mime
View raw message