[OpenSER-Devel] Parent Process
Christian Schlatter
cs at unc.edu
Wed Dec 5 03:54:38 UTC 2007
Daniel,
Daniel Corbe wrote:
> Does the parent process ever process any incoming requests?
No, it basically does all the initialization stuff and then goes to sleep.
for(;;){
pause();
handle_sigs();
}
/Christian
>
> The reason I ask:
>
> I'm writing a module which needs to maintain database connectivity
> (please don't say "why don't you use the domain module"). Each child
> maintains its own connection to the database. This is all done from my
> child_init function.
>
> If the parent is processing requests along with the children, the parent
> needs to have its own connection to the database as well, and I would
> have to duplicate the code in child_init inside of mod_init, right?
>
> -Daniel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
More information about the Devel
mailing list