diff options
Diffstat (limited to 'src/core/ngx_cycle.h')
-rw-r--r-- | src/core/ngx_cycle.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/ngx_cycle.h b/src/core/ngx_cycle.h index d9f1a607b..4d301f94d 100644 --- a/src/core/ngx_cycle.h +++ b/src/core/ngx_cycle.h @@ -25,12 +25,25 @@ struct ngx_cycle_s { }; +typedef struct { + ngx_flag_t daemon; + ngx_flag_t master; + ngx_flag_t worker_reopen; + ngx_uid_t user; + ngx_gid_t group; + ngx_str_t pid; + ngx_str_t newpid; +} ngx_core_conf_t; + + ngx_cycle_t *ngx_init_cycle(ngx_cycle_t *old_cycle); -void ngx_reopen_files(ngx_cycle_t *cycle, uid_t user); +void ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user); +ngx_pid_t ngx_exec_new_binary(ngx_cycle_t *cycle, char *const *argv); extern volatile ngx_cycle_t *ngx_cycle; extern ngx_array_t ngx_old_cycles; +extern ngx_module_t ngx_core_module; #endif /* _NGX_CYCLE_H_INCLUDED_ */ |