Igor Sysoev | d90282d | 2004-09-28 08:34:51 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
Igor Sysoev | ff8da91 | 2004-09-29 16:00:49 +0000 | [diff] [blame] | 3 | * Copyright (C) Igor Sysoev |
Igor Sysoev | d90282d | 2004-09-28 08:34:51 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 7 | #ifndef _NGX_PROCESS_CYCLE_H_INCLUDED_ |
| 8 | #define _NGX_PROCESS_CYCLE_H_INCLUDED_ |
| 9 | |
| 10 | |
| 11 | #include <ngx_config.h> |
| 12 | #include <ngx_core.h> |
| 13 | |
| 14 | |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 15 | #define NGX_PROCESS_SINGLE 0 |
| 16 | #define NGX_PROCESS_MASTER 1 |
| 17 | #define NGX_PROCESS_WORKER 2 |
| 18 | |
| 19 | |
Igor Sysoev | 924bd79 | 2004-10-11 15:07:03 +0000 | [diff] [blame] | 20 | void ngx_master_process_cycle(ngx_cycle_t *cycle); |
| 21 | void ngx_single_process_cycle(ngx_cycle_t *cycle); |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 22 | |
| 23 | |
Igor Sysoev | 3f4685f | 2004-04-25 20:13:21 +0000 | [diff] [blame] | 24 | extern ngx_uint_t ngx_process; |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 25 | extern ngx_pid_t ngx_pid; |
| 26 | extern ngx_pid_t ngx_new_binary; |
Igor Sysoev | 3f4685f | 2004-04-25 20:13:21 +0000 | [diff] [blame] | 27 | extern ngx_uint_t ngx_inherited; |
| 28 | extern ngx_uint_t ngx_threaded; |
| 29 | extern ngx_uint_t ngx_exiting; |
Igor Sysoev | a536298 | 2004-03-04 07:04:55 +0000 | [diff] [blame] | 30 | |
| 31 | extern sig_atomic_t ngx_reap; |
| 32 | extern sig_atomic_t ngx_timer; |
| 33 | extern sig_atomic_t ngx_quit; |
| 34 | extern sig_atomic_t ngx_terminate; |
| 35 | extern sig_atomic_t ngx_noaccept; |
| 36 | extern sig_atomic_t ngx_reconfigure; |
| 37 | extern sig_atomic_t ngx_reopen; |
| 38 | extern sig_atomic_t ngx_change_binary; |
| 39 | |
| 40 | |
| 41 | #endif /* _NGX_PROCESS_CYCLE_H_INCLUDED_ */ |