mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 04:52:25 +00:00
Core: improved logging on invalid NGINX variable (ticket #900).
This commit is contained in:
parent
cc79e1779a
commit
79654d53e3
1 changed files with 6 additions and 0 deletions
|
|
@ -481,6 +481,12 @@ ngx_add_inherited_sockets(ngx_cycle_t *cycle)
|
|||
}
|
||||
}
|
||||
|
||||
if (v != p) {
|
||||
ngx_log_error(NGX_LOG_EMERG, cycle->log, 0,
|
||||
"invalid socket number \"%s\" in " NGINX_VAR
|
||||
" environment variable, ignoring", v);
|
||||
}
|
||||
|
||||
ngx_inherited = 1;
|
||||
|
||||
return ngx_set_inherited_sockets(cycle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue