httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] (take 1) reliable piped logs
Date Mon, 22 Sep 1997 22:45:10 GMT


On Wed, 10 Sep 1997, Stanley Gambarin wrote:

> > > inline pool *mem_init() 
> > > {
> > > 	return (make_sub_pool(NULL));
> > > }
> > > inline void memory_destroy(pool *p) 
> > > {
> > > 	destroy_pool(p);
> > > }
> > > 
> > > which would allow external modules to use  Apache memory pool stuff,
> > > without any sideeffects.  If pepople are interested, say "Arg" and
> > > I will whip out some patches...
> > 
> > Can you explain why you need this?
> > 
> 
> 	When we create a new process group, i got a new process which 
> is completely unrelated to Apache (process manager in my case).  I would
> still like to use all Apache functions, however most of them need a pool
> as one of the arguments, which i currently do not have.  So, what I am
> forced to do in the module right now is to manually do make_sub_pool(NULL)
> since I need to call ap_md5 function which needs a pool.  Do you see
> my problem ?  Abstracting above would be ideal...

I don't see why it's a problem for you to call make_sub_pool(NULL) ...
since you're in a separate process.  This is what the API allows you to
do.  Or am I still missing something?

Dean


Mime
View raw message