allow "env" to work in the single process mode

This commit is contained in:
Igor Sysoev 2010-12-13 10:55:15 +00:00
parent 5644c43caf
commit 2567c92ace

View File

@ -291,6 +291,11 @@ ngx_single_process_cycle(ngx_cycle_t *cycle)
{
ngx_uint_t i;
if (ngx_set_environment(cycle, NULL) == NULL) {
/* fatal */
exit(2);
}
for (i = 0; ngx_modules[i]; i++) {
if (ngx_modules[i]->init_process) {
if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {