Mercurial > hg > nginx
comparison src/core/nginx.c @ 7662:9c038f5e0464
Fixed removing of listening UNIX sockets when "changing binary".
When changing binary, sending a SIGTERM to the new binary's master process
should not remove inherited UNIX sockets unless the old binary's master
process has exited.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 01 Jun 2020 20:19:27 +0300 |
parents | fdd6a070d518 |
children | f18db38a9826 |
comparison
equal
deleted
inserted
replaced
7661:8cadaf7e7231 | 7662:9c038f5e0464 |
---|---|
490 } | 490 } |
491 | 491 |
492 ngx_memzero(ls, sizeof(ngx_listening_t)); | 492 ngx_memzero(ls, sizeof(ngx_listening_t)); |
493 | 493 |
494 ls->fd = (ngx_socket_t) s; | 494 ls->fd = (ngx_socket_t) s; |
495 ls->inherited = 1; | |
495 } | 496 } |
496 } | 497 } |
497 | 498 |
498 if (v != p) { | 499 if (v != p) { |
499 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, | 500 ngx_log_error(NGX_LOG_EMERG, cycle->log, 0, |