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 | |
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')
-rw-r--r-- | src/core/nginx.h | 2 | ||||
-rw-r--r-- | src/core/ngx_cycle.c | 13 | ||||
-rw-r--r-- | src/core/ngx_regex.h | 6 |
3 files changed, 13 insertions, 8 deletions
diff --git a/src/core/nginx.h b/src/core/nginx.h index 4a1c31377..d1e3f431f 100644 --- a/src/core/nginx.h +++ b/src/core/nginx.h @@ -8,7 +8,7 @@ #define _NGINX_H_INCLUDED_ -#define NGINX_VERSION "0.5.17" +#define NGINX_VERSION "0.5.18" #define NGINX_VER "nginx/" NGINX_VERSION #define NGINX_VAR "NGINX" 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; diff --git a/src/core/ngx_regex.h b/src/core/ngx_regex.h index 7eefdbe49..430637721 100644 --- a/src/core/ngx_regex.h +++ b/src/core/ngx_regex.h @@ -22,10 +22,10 @@ typedef pcre ngx_regex_t; void ngx_regex_init(void); ngx_regex_t *ngx_regex_compile(ngx_str_t *pattern, ngx_int_t options, - ngx_pool_t *pool, ngx_str_t *err); + ngx_pool_t *pool, ngx_str_t *err); ngx_int_t ngx_regex_capture_count(ngx_regex_t *re); -ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s, - int *captures, ngx_int_t size); +ngx_int_t ngx_regex_exec(ngx_regex_t *re, ngx_str_t *s, int *captures, + ngx_int_t size); #define ngx_regex_exec_n "pcre_exec()" #define ngx_regex_capture_count_n "pcre_fullinfo()" |