<div dir="ltr">Hello Shuxin,<div><br></div><div>I have seen the same issue before. As far as I can tell this is simply a bug instead of by design (correct me if I'm wrong). I can also confirm that nginx will leave behind the listening socket file when terminated with SIGQUIT. There has been a bug report opened more than a year ago (<a href="https://trac.nginx.org/nginx/ticket/753">https://trac.nginx.org/nginx/ticket/753</a>) but still not being fixed.</div><div><br></div><div>Thanks,</div><div>Datong</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 1:30 PM, Shuxin Yang <span dir="ltr"><<a href="mailto:shuxinyang.oss@gmail.com" target="_blank">shuxinyang.oss@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, There:<br>
<br>
    Is there any reason not to delete UNIX domain socket before bind? It is bit inconvenient when :<br>
<br>
1). debugging: previous debugging session quit prematurely without erasing the UNIX domain socket, and the subsequent debugging session only see "address already in use" error message, and have to delete the socket, and launch debugger again.<br>
<br>
2). Writing deploy script. We need to make sure UNIX domain sockets are completely delete before launching Nginx; also care must be taken to keep the script and config file in sync, which is sometimes bit annoying.<br>
<br>
<br>
Thanks<br>
<br>
Shuxin<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org" target="_blank">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailm<wbr>an/listinfo/nginx-devel</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p style="font-family:Helvetica;font-size:12px;color:rgb(64,64,64)"><b>Datong Sun</b>  |  Systems Engineer<br><a href="mailto:datong@cloudflare.com" style="color:rgb(47,123,191)" target="_blank">datong@cloudflare.com</a></p><a href="https://www.cloudflare.com/" style="font-family:Times;font-size:medium" target="_blank"><div style="background-image:url("https://www.cloudflare.com/img/signature-cloud.png");width:200px;height:30px;margin-right:20px;margin-top:20px"></div></a><p style="font-family:Helvetica;font-size:12px;color:rgb(64,64,64)">1 888 99 FLARE  |  <a href="https://www.cloudflare.com/" style="color:rgb(47,123,191)" target="_blank">www.cloudflare.com</a></p></div></div>
</div>