[nginx] style

洪志道 hongzhidao at gmail.com
Thu Mar 16 16:53:24 UTC 2017


By the way, I'm confused by the problem I sent a few days ago.
And I think there are also other users face the same problem.

When we upgrade nginx, it produces the phenomenon that
the nginx.pid file is deleted but the master and worker processes are still
running.
Inside nginx source, it seems nginx dose guarantee that pid file and
master/worker processes
are always exist together.

What causes this phenomenon?

```
kill -USR2 pid;
sleep n;
kill -QUIT oldpid;
```

Thanks so much.
B.R.

2017-03-17 0:05 GMT+08:00 Ruslan Ermilov <ru at nginx.com>:

> On Thu, Mar 16, 2017 at 05:40:46PM +0800, 洪志道 wrote:
> > Hi!
> >
> > diff -r d45072375572 src/os/unix/ngx_process.c
> > --- a/src/os/unix/ngx_process.c Tue Mar 07 18:51:17 2017 +0300
> > +++ b/src/os/unix/ngx_process.c Thu Mar 16 06:44:25 2017 -0400
> > @@ -306,7 +306,7 @@
> >  }
> >
> >
> > -void
> > +static void
> >  ngx_signal_handler(int signo)
> >  {
> >      char            *action;
> >
> >
> > Thanks.
> > B.R.
>
> Fixed, thanks!
>
> http://hg.nginx.org/nginx/rev/e54c336d95aa
> _______________________________________________
> 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/20170317/80816356/attachment.html>


More information about the nginx-devel mailing list