aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/nginx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 6ce030cb1..602000d6a 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -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);