Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame^] | 1 | #ifndef _NGX_PROCESS_CYCLE_H_INCLUDED_ |
| 2 | #define _NGX_PROCESS_CYCLE_H_INCLUDED_ |
| 3 | |
| 4 | |
| 5 | #include <ngx_config.h> |
| 6 | #include <ngx_core.h> |
| 7 | |
| 8 | |
| 9 | typedef struct { |
| 10 | ngx_file_t pid; |
| 11 | char *name; |
| 12 | int argc; |
| 13 | char *const *argv; |
| 14 | } ngx_master_ctx_t; |
| 15 | |
| 16 | |
| 17 | #define NGX_PROCESS_SINGLE 0 |
| 18 | #define NGX_PROCESS_MASTER 1 |
| 19 | #define NGX_PROCESS_WORKER 2 |
| 20 | |
| 21 | |
| 22 | void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx); |
| 23 | |
| 24 | |
| 25 | extern ngx_int_t ngx_process; |
| 26 | extern ngx_pid_t ngx_pid; |
| 27 | extern ngx_pid_t ngx_new_binary; |
| 28 | extern ngx_int_t ngx_inherited; |
| 29 | |
| 30 | extern sig_atomic_t ngx_reap; |
| 31 | extern sig_atomic_t ngx_timer; |
| 32 | extern sig_atomic_t ngx_quit; |
| 33 | extern sig_atomic_t ngx_terminate; |
| 34 | extern sig_atomic_t ngx_noaccept; |
| 35 | extern sig_atomic_t ngx_reconfigure; |
| 36 | extern sig_atomic_t ngx_reopen; |
| 37 | extern sig_atomic_t ngx_change_binary; |
| 38 | |
| 39 | |
| 40 | #endif /* _NGX_PROCESS_CYCLE_H_INCLUDED_ */ |