comparison src/core/ngx_cycle.c @ 410:a094317ba307 NGINX_0_7_14

nginx 0.7.14 *) Change: now the ssl_certificate and ssl_certificate_key directives have not default values. *) Feature: the "listen" directive supports the "ssl" parameter. *) Feature: now nginx takes into account a time zone change while reconfiguration on FreeBSD and Linux. *) Bugfix: the "listen" directive parameters such as "backlog", "rcvbuf", etc. were not set, if a default server was not the first one. *) Bugfix: if URI part captured by a "rewrite" directive was used as a query string, then the query string was not escaped. *) Bugfix: configuration file validity test improvements.
author Igor Sysoev <http://sysoev.ru>
date Mon, 01 Sep 2008 00:00:00 +0400
parents 12defd37f578
children ff86d646f9df
comparison
equal deleted inserted replaced
409:d46814b99ca0 410:a094317ba307
45 void *rv; 45 void *rv;
46 char **senv, **env; 46 char **senv, **env;
47 u_char *lock_file; 47 u_char *lock_file;
48 ngx_uint_t i, n; 48 ngx_uint_t i, n;
49 ngx_log_t *log; 49 ngx_log_t *log;
50 ngx_time_t *tp;
50 ngx_conf_t conf; 51 ngx_conf_t conf;
51 ngx_pool_t *pool; 52 ngx_pool_t *pool;
52 ngx_cycle_t *cycle, **old; 53 ngx_cycle_t *cycle, **old;
53 ngx_shm_zone_t *shm_zone, *oshm_zone; 54 ngx_shm_zone_t *shm_zone, *oshm_zone;
54 ngx_slab_pool_t *shpool; 55 ngx_slab_pool_t *shpool;
57 ngx_listening_t *ls, *nls; 58 ngx_listening_t *ls, *nls;
58 ngx_core_conf_t *ccf, *old_ccf; 59 ngx_core_conf_t *ccf, *old_ccf;
59 ngx_core_module_t *module; 60 ngx_core_module_t *module;
60 char hostname[NGX_MAXHOSTNAMELEN]; 61 char hostname[NGX_MAXHOSTNAMELEN];
61 62
63 ngx_timezone_update();
64
65 /* force localtime update with a new timezone */
66
67 tp = ngx_timeofday();
68 tp->sec = 0;
69
70 ngx_time_update(0, 0);
71
72
62 log = old_cycle->log; 73 log = old_cycle->log;
63 74
64 pool = ngx_create_pool(NGX_CYCLE_POOL_SIZE, log); 75 pool = ngx_create_pool(NGX_CYCLE_POOL_SIZE, log);
65 if (pool == NULL) { 76 if (pool == NULL) {
66 return NULL; 77 return NULL;