commit | 2567c92ace7e29fe8b4d4933dbe294cee2583018 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Dec 13 10:55:15 2010 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Dec 13 10:55:15 2010 +0000 |
tree | 774a45d498d3ad6d3c219919118ee71feef55843 | |
parent | 5644c43caf8130d511758b8f9727c4fd4e0388d4 [diff] |
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 6051025..3ff0f75 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c
@@ -291,6 +291,11 @@ { 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) {