comparison src/os/unix/ngx_process_cycle.c @ 3826:6843e7c492b7

allow "env" to work in the single process mode
author Igor Sysoev <igor@sysoev.ru>
date Mon, 13 Dec 2010 10:55:15 +0000
parents 89002ac695e5
children 59b99f217c6d
comparison
equal deleted inserted replaced
3825:3770119af0b5 3826:6843e7c492b7
289 void 289 void
290 ngx_single_process_cycle(ngx_cycle_t *cycle) 290 ngx_single_process_cycle(ngx_cycle_t *cycle)
291 { 291 {
292 ngx_uint_t i; 292 ngx_uint_t i;
293 293
294 if (ngx_set_environment(cycle, NULL) == NULL) {
295 /* fatal */
296 exit(2);
297 }
298
294 for (i = 0; ngx_modules[i]; i++) { 299 for (i = 0; ngx_modules[i]; i++) {
295 if (ngx_modules[i]->init_process) { 300 if (ngx_modules[i]->init_process) {
296 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) { 301 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
297 /* fatal */ 302 /* fatal */
298 exit(2); 303 exit(2);