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] module port to 2.0
Date Sat, 19 Jun 1999 18:59:55 GMT
thanks for the patch, applied.

On Sat, 19 Jun 1999, Michael H. Voase wrote:

> Dean Gaudet wrote:
> > 
> > Yup, use a child_init_hook and ap_register_cleanup(pconf, foo) and you'll
> > get picked up at child exit time.
> > 
> 
> Hmm ... OK I can see the logic behind this . This works out
> fairly nice actually . The current code only allows for one
> parameter to be passed to the module exit code . The legacy
> code passed ( server_rec * , pool * ) , however correct exit
> code only needs server_rec . If exit code is allocating memory
> at exit time then it probably should be looked at for overhaul *-( . 
> ( mod_log_config turned out to be trivial since although it
> took a pool parameter in the function , it never actually
> used it ;) 

if you needed more data you can do this for example:

struct my_struct {
    server_rec *s;
    pool *p;
};

then pass in a pointer to my_struct in the void *... 

Dean

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message