<div dir="ltr">By the way, I'm confused by the problem I sent a few days ago. <div>And I think there are also other users face the same problem.<div><div style="font-size:14px"><br></div><div><span style="font-size:14px">When we upgrade nginx, it produces the phenomenon<font color="#333333" face="arial"> that </font></span></div><div><span style="font-size:14px"><font color="#333333" face="arial">the nginx.pid file is deleted </font></span><span style="font-size:14px">but the master and worker processes are still running.</span></div><div><span style="font-size:14px">Inside nginx source, it seems </span><span style="font-size:14px">nginx dose guarantee that pid file and master/worker processes</span></div><div><span style="font-size:14px">are always exist together.</span></div><div><span style="font-size:14px"><br></span></div><div style="font-size:14px">What causes this phenomenon?</div><div style="font-size:14px"><br></div><div style="font-size:14px">```</div><div style="font-size:14px">kill -USR2 pid;</div><div style="font-size:14px">sleep n;</div><div style="font-size:14px">kill -QUIT oldpid;</div><div style="font-size:14px">```</div><div style="font-size:14px"><br></div><div style="font-size:14px">Thanks so much.</div><div style="font-size:14px">B.R.</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-17 0:05 GMT+08:00 Ruslan Ermilov <span dir="ltr"><<a href="mailto:ru@nginx.com" target="_blank">ru@nginx.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Mar 16, 2017 at 05:40:46PM +0800, 洪志道 wrote:<br>
> Hi!<br>
><br>
> diff -r d45072375572 src/os/unix/ngx_process.c<br>
> --- a/src/os/unix/ngx_process.c Tue Mar 07 18:51:17 2017 +0300<br>
> +++ b/src/os/unix/ngx_process.c Thu Mar 16 06:44:25 2017 -0400<br>
> @@ -306,7 +306,7 @@<br>
> }<br>
><br>
><br>
> -void<br>
> +static void<br>
> ngx_signal_handler(int signo)<br>
> {<br>
> char *action;<br>
><br>
><br>
> Thanks.<br>
> B.R.<br>
<br>
</div></div>Fixed, thanks!<br>
<br>
<a href="http://hg.nginx.org/nginx/rev/e54c336d95aa" rel="noreferrer" target="_blank">http://hg.nginx.org/nginx/rev/<wbr>e54c336d95aa</a><br>
______________________________<wbr>_________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx-devel</a></blockquote></div><br></div>