comparison src/core/ngx_cycle.h @ 605:5dac8c7fb71b release-0.3.24

nginx-0.3.24-RELEASE import *) Workaround: for bug in FreeBSD kqueue. *) Bugfix: now a response generated by the "post_action" directive is not transferred to a client. *) Bugfix: the memory leaks were occurring if many log files were used. *) Bugfix: the first "proxy_redirect" directive was working inside one location. *) Bugfix: on 64-bit platforms segmentation fault may occurred on start if the many names were used in the "server_name" directives; the bug had appeared in 0.3.18.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 01 Feb 2006 18:22:15 +0000
parents d4e858a5751a
children 3f8a2132b93d
comparison
equal deleted inserted replaced
604:f4a6e8f250a8 605:5dac8c7fb71b
29 ngx_log_t *new_log; 29 ngx_log_t *new_log;
30 30
31 ngx_connection_t **files; 31 ngx_connection_t **files;
32 ngx_connection_t *free_connections; 32 ngx_connection_t *free_connections;
33 ngx_uint_t free_connection_n; 33 ngx_uint_t free_connection_n;
34
35 ngx_shm_t shm;
36 u_char *shm_last;
37 u_char *shm_end;
34 38
35 ngx_array_t listening; 39 ngx_array_t listening;
36 ngx_array_t pathes; 40 ngx_array_t pathes;
37 ngx_list_t open_files; 41 ngx_list_t open_files;
38 42
88 typedef struct { 92 typedef struct {
89 ngx_pool_t *pool; /* pcre's malloc() pool */ 93 ngx_pool_t *pool; /* pcre's malloc() pool */
90 } ngx_core_tls_t; 94 } ngx_core_tls_t;
91 95
92 96
97 #define ngx_is_init_cycle(old) (old && old->conf_ctx == NULL)
98
99
93 ngx_cycle_t *ngx_init_cycle(ngx_cycle_t *old_cycle); 100 ngx_cycle_t *ngx_init_cycle(ngx_cycle_t *old_cycle);
94 ngx_int_t ngx_create_pidfile(ngx_cycle_t *cycle, ngx_cycle_t *old_cycle); 101 ngx_int_t ngx_create_pidfile(ngx_cycle_t *cycle, ngx_cycle_t *old_cycle);
95 void ngx_delete_pidfile(ngx_cycle_t *cycle); 102 void ngx_delete_pidfile(ngx_cycle_t *cycle);
96 void ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user); 103 void ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user);
97 ngx_pid_t ngx_exec_new_binary(ngx_cycle_t *cycle, char *const *argv); 104 ngx_pid_t ngx_exec_new_binary(ngx_cycle_t *cycle, char *const *argv);