Welcome! Log In Create A New Profile

Advanced

Re: [nginx] style

March 16, 2017 12:54PM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] style

karton 571 March 16, 2017 05:42AM

Re: [nginx] style

ru@nginx.com 475 March 16, 2017 12:06PM

Re: [nginx] style

karton 360 March 16, 2017 12:54PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready