Re: path purpose//Re:[patch]fork: subprocess quit when parent died

洪志道 hongzhidao at gmail.com
Thu Oct 13 04:10:21 UTC 2016


Hello!

It's a common case that all the worker processes are still live while the
master process isn't exist.
So I think nginx should continue to work as Maxim said.

Btw, we noticed that nginx.pid is deleted when we do the upgrade command.
kill -USR2 nginx.pid; sleep(2); kill -HUP nginx.oldpid;

What reason?

Thanks.
B.R~

2016-10-13 11:04 GMT+08:00 Maxim Dounin <mdounin at mdounin.ru>:

> Hello!
>
> On Thu, Oct 13, 2016 at 08:38:56AM +0800, 李林哲 wrote:
>
> > This patch is solving the problem that the sub process (worker
> > process) will not quit when master process quits on SIGKILL.
> > which will be done by OS (especially Linux) when system meet
> > OOM.
>
> Why do you think that worker processes should exit when master
> process is killed by OOM?  I would rather say they shouldn't and
> should continue to work as long as they can.
>
> --
> Maxim Dounin
> http://nginx.org/
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20161013/919d1cf0/attachment.html>


More information about the nginx-devel mailing list