Re: [PATCH] Re: fix_hostname() in 1.3.30-dev broken

2004-03-27 Thread Jeff Trawick
Jim Jagielski wrote:
Index: src/main/http_vhost.c
===
RCS file: /home/cvs/apache-1.3/src/main/http_vhost.c,v
retrieving revision 1.37
diff -u -r1.37 http_vhost.c
--- src/main/http_vhost.c16 Feb 2004 22:29:33 -1.37
+++ src/main/http_vhost.c24 Mar 2004 16:14:15 -
@@ -662,6 +662,7 @@
 char *host = ap_palloc(r->pool, strlen(r->hostname) + 1);
 const char *src;
 char *dst;
+char *port_str;
const qualifier needed for port_str


apr_pool_cleanup_register question..

2004-03-27 Thread Esteban Pizzini
Hi,

I have add this to post_config handler:
apr_pool_cleanup_register(p, NULL, module_clean_up,
apr_pool_cleanup_null);

because I want to know when Apache is shutting down to do some things in my
module...
It works ok when apache shutdown, but it´s called when it starts too... :(
I think this happens because apr_pool_cleanup_register "registers functions
to be  called when a pool is cleared or destroyed", so when apache start I
suppose that the pool is cleared..

is there a way to get my function called only when apache shutdown???

Thank you!
EP