Re: [users@httpd] Worker MPM with debug mode

2018-01-18 Thread Hemant Chaudhary
Hi Yann, Sorry I didn't noticed that I have copied prefork code in mail. I am using following code in worker : if (one_process) { worker_note_child_killed(/* slot */ 0, 0, 0); atexit(apr_terminate); } exit(code); This patch is not working as expected. To kill worker in

Re: [users@httpd] Worker MPM with debug mode

2018-01-18 Thread Yann Ylavic
On Thu, Jan 18, 2018 at 4:25 PM, Hemant Chaudhary wrote: > > Yes this patch of code is not working for worker mpm in Apache-2.4.25 Do you mean that the patch does not apply to 2.4.25 (patching fails) or that when the patch is applied it does not work as expected?

Re: [users@httpd] Worker MPM with debug mode

2018-01-18 Thread Hemant Chaudhary
Hi Yann, Yes this patch of code is not working for worker mpm in Apache-2.4.25 Thanks Hemant On Jan 18, 2018 5:28 PM, "Yann Ylavic" wrote: > Hi Hemant, > > On Thu, Jan 18, 2018 at 6:23 AM, Hemant Chaudhary > wrote: > > Hi All , > > > > I

Re: [users@httpd] Worker MPM with debug mode

2018-01-18 Thread Yann Ylavic
Hi Hemant, On Thu, Jan 18, 2018 at 6:23 AM, Hemant Chaudhary wrote: > Hi All , > > I added the following patch of code in my worker.c > static void clean_child_exit(int code) > > if (one_process) { > prefork_note_child_killed(/* slot */ 0, 0, 0); > +

[users@httpd] Worker MPM with debug mode

2018-01-17 Thread Hemant Chaudhary
Hi All , I added the following patch of code in my worker.c static void clean_child_exit(int code) if (one_process) { prefork_note_child_killed(/* slot */ 0, 0, 0); +atexit(apr_terminate); } ap_mpm_pod_close(my_bucket->pod); When I am starting apache with Worker