diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-04-19 18:17:35 +0000 |
---|---|---|
committer | Jonathan Kolb <jon@b0g.us> | 2007-04-19 18:17:35 +0000 |
commit | efb46f1637bbe2cf93311b48bd32e0c702ae2af7 (patch) | |
tree | 62932d911679ec18aef0af84308352d51ec5355a /src/core/ngx_cycle.c | |
parent | 71b65bfec6b3186bec60fd1dbfac47930ef71b99 (diff) | |
download | nginx-efb46f1637bbe2cf93311b48bd32e0c702ae2af7.tar.gz |
Changes with nginx 0.5.18 19 Apr 2007v0.5.18
*) Feature: the ngx_http_sub_filter_module.
*) Feature: the "$upstream_http_..." variables.
*) Feature: now the $upstream_status and $upstream_response_time
variables keep data about all upstreams before X-Accel-Redirect.
*) Bugfix: a segmentation fault occurred in master process after first
reconfiguration and receiving any signal if nginx was built with
ngx_http_perl_module and perl did not support multiplicity; bug
appeared in 0.5.9.
*) Bugfix: if perl did not support multiplicity, then after
reconfiguration perl code did not work; bug appeared in 0.3.38.
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r-- | src/core/ngx_cycle.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 243febd0e..f900a2824 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -54,11 +54,8 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) ngx_list_part_t *part, *opart; ngx_open_file_t *file; ngx_listening_t *ls, *nls; - ngx_core_conf_t *ccf; + ngx_core_conf_t *ccf, *old_ccf; ngx_core_module_t *module; -#if !(WIN32) - ngx_core_conf_t *old_ccf; -#endif log = old_cycle->log; @@ -747,6 +744,14 @@ old_shm_zone_done: failed: + if (!ngx_is_init_cycle(old_cycle)) { + old_ccf = (ngx_core_conf_t *) ngx_get_conf(old_cycle->conf_ctx, + ngx_core_module); + if (old_ccf->environment) { + environ = old_ccf->environment; + } + } + /* rollback the new cycle configuration */ part = &cycle->open_files.part; |