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 { |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 10 | int argc; |
| 11 | char *const *argv; |
| 12 | } ngx_master_ctx_t; |
| 13 | |
| 14 | |
| 15 | #define NGX_PROCESS_SINGLE 0 |
| 16 | #define NGX_PROCESS_MASTER 1 |
| 17 | #define NGX_PROCESS_WORKER 2 |
| 18 | |
| 19 | |
| 20 | void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx); |
| 21 | |
| 22 | |
| 23 | extern ngx_int_t ngx_process; |
| 24 | extern ngx_pid_t ngx_pid; |
| 25 | extern ngx_pid_t ngx_new_binary; |
| 26 | extern ngx_int_t ngx_inherited; |
Igor Sysoev | c972a3f | 2004-04-02 15:13:20 +0000 | [diff] [blame] | 27 | extern ngx_int_t ngx_threaded; |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 28 | |
| 29 | extern sig_atomic_t ngx_reap; |
| 30 | extern sig_atomic_t ngx_timer; |
| 31 | extern sig_atomic_t ngx_quit; |
| 32 | extern sig_atomic_t ngx_terminate; |
| 33 | extern sig_atomic_t ngx_noaccept; |
| 34 | extern sig_atomic_t ngx_reconfigure; |
| 35 | extern sig_atomic_t ngx_reopen; |
| 36 | extern sig_atomic_t ngx_change_binary; |
| 37 | |
| 38 | |
| 39 | #endif /* _NGX_PROCESS_CYCLE_H_INCLUDED_ */ |