On 11/12/2010 12:47 PM, Stefan Fritsch wrote:
> Hi,
> 
> it is common procedure for modules to detect the first configuration 
> run at httpd startup by looking for some userdata in the process pool. 
> If the userdata is not set, they set it and then skip some 
> initialization that should not be done during the first config run.
> 
> But this logic is broken: If a LoadModule statement is added while 
> httpd is running, and httpd is then gracefully restarted, the module 
> will be loaded but assume that this is the startup configuration 
> phase. It won't initialize itself fully and will work correctly only 
> after the second graceful restart. This can be very confusing for 
> users.

That's why you would generally add a pool datum to the process->pool,
which survives module unload/reload.

Reply via email to