Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 979:cb876bced0c2
fix zero size shared zones
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 06 Jan 2007 18:52:06 +0000 |
parents | e2d358129eb6 |
children | 1b9a4d92173f |
comparison
equal
deleted
inserted
replaced
978:b3d642b5e4bb | 979:cb876bced0c2 |
---|---|
364 part = part->next; | 364 part = part->next; |
365 shm_zone = part->elts; | 365 shm_zone = part->elts; |
366 i = 0; | 366 i = 0; |
367 } | 367 } |
368 | 368 |
369 if (shm_zone[i].shm.size == 0) { | |
370 ngx_log_error(NGX_LOG_EMERG, log, 0, | |
371 "zero size shared memory zone \"%V\"", | |
372 &shm_zone[i].name); | |
373 goto failed; | |
374 } | |
375 | |
369 shm_zone[i].shm.log = cycle->log; | 376 shm_zone[i].shm.log = cycle->log; |
370 | 377 |
371 opart = &old_cycle->shared_memory.part; | 378 opart = &old_cycle->shared_memory.part; |
372 oshm_zone = opart->elts; | 379 oshm_zone = opart->elts; |
373 | 380 |