mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
allow "env" to work in the single process mode
This commit is contained in:
parent
5644c43caf
commit
2567c92ace
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue