At 01:38 AM 9/11/2003, Mladen Turk wrote: >Hi all, > >Is there a possibility to add some sort of a hook to a parent that will >execute when the child process dies? I would like to have a config >option that will (something like Windows service manager has for the >services itself) behave differently on first and on the consecutive >failures, either launching sendmail, or shutting down the httpd itself, >or whatever. > >What would be the right place to add such a feature; core or mpm?
Within the mpm - they way it is determined changes from mpm to mpm. You ask about "the child process" - there may be one, or many. You will need to decide if this should trigger on each individual child process that "goes away" - perhaps with a useful nugget like that childs' apr_proc_t. But I suggest you take a look at the otherchild logic first. Perhaps we goofed? Maybe in 2.1 the very best thing would be to treat all worker processes as "just another otherchild"? That seems like it would become alot more extensible. Again - that logic all belongs in the mpm itself. Bill
