mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 03:22:48 +08:00
do not unlink unix domain socket file while online upgrade
This commit is contained in:
parent
633c178a17
commit
9f179fe546
@ -627,7 +627,8 @@ ngx_close_listening_sockets(ngx_cycle_t *cycle)
|
|||||||
#if (NGX_HAVE_UNIX_DOMAIN)
|
#if (NGX_HAVE_UNIX_DOMAIN)
|
||||||
|
|
||||||
if (ls[i].sockaddr->sa_family == AF_UNIX
|
if (ls[i].sockaddr->sa_family == AF_UNIX
|
||||||
&& ngx_process != NGX_PROCESS_WORKER)
|
&& ngx_process != NGX_PROCESS_WORKER
|
||||||
|
&& ngx_new_binary == 0)
|
||||||
{
|
{
|
||||||
u_char *name = ls[i].addr_text.data + sizeof("unix:") - 1;
|
u_char *name = ls[i].addr_text.data + sizeof("unix:") - 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user