On 12/14/2009 09:03 AM, joseph Chen wrote: > Hi, > > Can someoen there tell me why my callback routine registred with > "ap_hook_child_init()" is being called multiple times during httpd-2.2 > running?
This hook is called for every child spawned by the main process. So if you have multiple client processes (which is very likely) it is called multiple times. > > I am a newbie to develope a my own module for apache-2.2. Within my > module, I want to run a new thread for listening a socket port. I > create a new thread within the callback routine for > "ap_hook_chile_init()" but this multiple-calling causes too many > threads being created. Maybe some background information could enable people to provide better help. Regards RĂ¼diger
