aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_cycle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r--src/core/ngx_cycle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index eac6a5c48..89109b389 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -373,6 +373,11 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
goto failed;
}
+ if (shm_zone[i].init == NULL) {
+ /* unused shared zone */
+ continue;
+ }
+
shm_zone[i].shm.log = cycle->log;
opart = &old_cycle->shared_memory.part;