nginx的main函数中
先初始化ngx_log_t log即存放日志描述符,用于输出日志信息;
------------------------------------------------------
pool =ngx_create_pool(NGX_CYCLE_POOL_SIZE, log);
cycle =ngx_pcalloc(pool, sizeof(ngx_cycle_t));
cycle的pool为pool
全局指针ngx_cycle = cycle;
-----------------------------------------------------