changeset 6399:50fb3fd79f76

Core: improved logging on invalid NGINX variable (ticket #900).
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 15 Feb 2016 17:41:52 +0300
parents c8491e096e13
children b4c28876d2c3
files src/core/nginx.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -481,6 +481,12 @@ ngx_add_inherited_sockets(ngx_cycle_t *c
         }
     }
 
+    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);