comparison src/core/ngx_cycle.c @ 2220:bf38420c9e25

ngx_timezone_update()
author Igor Sysoev <igor@sysoev.ru>
date Sat, 30 Aug 2008 19:52:07 +0000
parents 01b71aa095cc
children 2abf14c952a2
comparison
equal deleted inserted replaced
2219:fb84e3e95841 2220:bf38420c9e25
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;