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 debug mode, I ned
to use kill -9 PID whereas similar approach works as expected in prefork.

Thanks
Hemant


On Thu, Jan 18, 2018 at 9:33 PM, Yann Ylavic <ylavic....@gmail.com> wrote:

> On Thu, Jan 18, 2018 at 4:25 PM, Hemant Chaudhary
> <hemantdude.chaudh...@gmail.com> 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?
>
> The patch you proposed in the original message seems to be for
> prefork, not worker, while mine is really for worker, i.e.:
> http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/
> worker/worker.c?r1=1814112&r2=1814111&pathrev=1814112&view=patch
>
>
> Thanks,
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

Reply via email to