Re: child_init hook: Main vs. MPM processes

2020-12-14 Thread Florian Wagner
On Mon, 14 Dec 2020 13:38:43 +0100 Yann Ylavic wrote: > Hi Florian, > > On Mon, Dec 14, 2020 at 12:11 PM Florian Wagner > wrote: > > > > is there a simple way to detect in a child_init hook if the current > > process is also the main server process (the one that runs the > > pre_config hook).

Re: child_init hook: Main vs. MPM processes

2020-12-14 Thread Yann Ylavic
Hi Florian, On Mon, Dec 14, 2020 at 12:11 PM Florian Wagner wrote: > > is there a simple way to detect in a child_init hook if the current > process is also the main server process (the one that runs the > pre_config hook). It depends on the MPMs your module is targeting. For unix MPMs (which

child_init hook: Main vs. MPM processes

2020-12-14 Thread Florian Wagner
Hey everyone, is there a simple way to detect in a child_init hook if the current process is also the main server process (the one that runs the pre_config hook). At least for debug mode (-X commandline switch) both pre_config and child_init are being both run for that single process and there's