aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_connection.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-30 19:18:21 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-30 19:18:21 +0000
commit9f179fe546b9dd323047e09917a508ae3ab3e4dd (patch)
tree54b48eb849a0774f8097b1104f110d90f698f72c /src/core/ngx_connection.c
parent633c178a17f5e8be2856271399fe1d4097179b73 (diff)
downloadnginx-9f179fe546b9dd323047e09917a508ae3ab3e4dd.tar.gz
nginx-9f179fe546b9dd323047e09917a508ae3ab3e4dd.zip
do not unlink unix domain socket file while online upgrade
Diffstat (limited to 'src/core/ngx_connection.c')
-rw-r--r--src/core/ngx_connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c
index b6246c402..6056c3f40 100644
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -627,7 +627,8 @@ ngx_close_listening_sockets(ngx_cycle_t *cycle)
#if (NGX_HAVE_UNIX_DOMAIN)
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;