Core: improved logging on invalid NGINX variable (ticket #900).
diff --git a/src/core/nginx.c b/src/core/nginx.c index 6ce030c..602000d 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c
@@ -481,6 +481,12 @@ } } + 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);