mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 19:12:47 +08:00
allow "env" to work in the single process mode
This commit is contained in:
parent
5644c43caf
commit
2567c92ace
@ -291,6 +291,11 @@ ngx_single_process_cycle(ngx_cycle_t *cycle)
|
|||||||
{
|
{
|
||||||
ngx_uint_t i;
|
ngx_uint_t i;
|
||||||
|
|
||||||
|
if (ngx_set_environment(cycle, NULL) == NULL) {
|
||||||
|
/* fatal */
|
||||||
|
exit(2);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; ngx_modules[i]; i++) {
|
for (i = 0; ngx_modules[i]; i++) {
|
||||||
if (ngx_modules[i]->init_process) {
|
if (ngx_modules[i]->init_process) {
|
||||||
if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
|
if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
|
||||||
|
Loading…
Reference in New Issue
Block a user