comparison src/core/nginx.c @ 796:3db9dd3d9d8c

aligned ngx_crc32_table_short was allocated from wrong pool
author Igor Sysoev <igor@sysoev.ru>
date Fri, 20 Oct 2006 12:22:39 +0000
parents 8d39da951bbd
children 201d017ea470
comparison
equal deleted inserted replaced
795:7011973da3a2 796:3db9dd3d9d8c
254 254
255 if (ngx_add_inherited_sockets(&init_cycle) != NGX_OK) { 255 if (ngx_add_inherited_sockets(&init_cycle) != NGX_OK) {
256 return 1; 256 return 1;
257 } 257 }
258 258
259 if (ngx_crc32_init(init_cycle.pool) != NGX_OK) {
260 return 1;
261 }
262
263 environ = &ngx_null_environ; 259 environ = &ngx_null_environ;
264 260
265 ngx_max_module = 0; 261 ngx_max_module = 0;
266 for (i = 0; ngx_modules[i]; i++) { 262 for (i = 0; ngx_modules[i]; i++) {
267 ngx_modules[i]->index = ngx_max_module++; 263 ngx_modules[i]->index = ngx_max_module++;
284 cycle->conf_file.data); 280 cycle->conf_file.data);
285 return 0; 281 return 0;
286 } 282 }
287 283
288 ngx_os_status(cycle->log); 284 ngx_os_status(cycle->log);
285
286 if (ngx_crc32_init(cycle->pool) != NGX_OK) {
287 return 1;
288 }
289 289
290 ngx_cycle = cycle; 290 ngx_cycle = cycle;
291 291
292 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 292 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
293 293