From: Igor Sysoev Date: Mon, 13 Dec 2010 10:55:15 +0000 (+0000) Subject: allow "env" to work in the single process mode X-Git-Tag: release-0.9.3~1 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=2567c92ace7e29fe8b4d4933dbe294cee2583018;p=nginx.git allow "env" to work in the single process mode --- diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 605102558..3ff0f75c6 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -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) {