mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Core: improved logging on invalid NGINX variable (ticket #900).
This commit is contained in:
parent
cc79e1779a
commit
79654d53e3
@ -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…
Reference in New Issue
Block a user