comparison src/core/ngx_connection.c @ 3261:35077c22326c

do not unlink unix domain socket file while online upgrade
author Igor Sysoev <igor@sysoev.ru>
date Fri, 30 Oct 2009 19:18:21 +0000
parents a6df0624203c
children 00d436dbf826
comparison
equal deleted inserted replaced
3260:a6df0624203c 3261:35077c22326c
625 } 625 }
626 626
627 #if (NGX_HAVE_UNIX_DOMAIN) 627 #if (NGX_HAVE_UNIX_DOMAIN)
628 628
629 if (ls[i].sockaddr->sa_family == AF_UNIX 629 if (ls[i].sockaddr->sa_family == AF_UNIX
630 && ngx_process != NGX_PROCESS_WORKER) 630 && ngx_process != NGX_PROCESS_WORKER
631 && ngx_new_binary == 0)
631 { 632 {
632 u_char *name = ls[i].addr_text.data + sizeof("unix:") - 1; 633 u_char *name = ls[i].addr_text.data + sizeof("unix:") - 1;
633 634
634 if (ngx_delete_file(name) == -1) { 635 if (ngx_delete_file(name) == -1) {
635 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_socket_errno, 636 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_socket_errno,