Mercurial > hg > nginx
comparison src/os/unix/ngx_process_cycle.h @ 366:e411b1482ee3
nginx-0.0.7-2004-06-23-19:18:17 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 23 Jun 2004 15:18:17 +0000 |
parents | 239e37d44a34 |
children | d0451e402e27 |
comparison
equal
deleted
inserted
replaced
365:fd24ba70e1b3 | 366:e411b1482ee3 |
---|---|
9 #define NGX_CMD_OPEN_CHANNEL 1 | 9 #define NGX_CMD_OPEN_CHANNEL 1 |
10 #define NGX_CMD_CLOSE_CHANNEL 2 | 10 #define NGX_CMD_CLOSE_CHANNEL 2 |
11 #define NGX_CMD_QUIT 3 | 11 #define NGX_CMD_QUIT 3 |
12 #define NGX_CMD_TERMINATE 4 | 12 #define NGX_CMD_TERMINATE 4 |
13 #define NGX_CMD_REOPEN 5 | 13 #define NGX_CMD_REOPEN 5 |
14 | |
15 | |
16 typedef struct { | |
17 ngx_uint_t command; | |
18 ngx_pid_t pid; | |
19 ngx_int_t slot; | |
20 ngx_fd_t fd; | |
21 } ngx_channel_t; | |
22 | 14 |
23 | 15 |
24 typedef struct { | 16 typedef struct { |
25 int argc; | 17 int argc; |
26 char *const *argv; | 18 char *const *argv; |
34 | 26 |
35 void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx); | 27 void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx); |
36 void ngx_single_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx); | 28 void ngx_single_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx); |
37 | 29 |
38 | 30 |
39 ngx_int_t ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size, | |
40 ngx_log_t *log); | |
41 ngx_int_t ngx_read_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size, | |
42 ngx_log_t *log); | |
43 | |
44 | |
45 extern ngx_uint_t ngx_process; | 31 extern ngx_uint_t ngx_process; |
46 extern ngx_pid_t ngx_pid; | 32 extern ngx_pid_t ngx_pid; |
47 extern ngx_pid_t ngx_new_binary; | 33 extern ngx_pid_t ngx_new_binary; |
48 extern ngx_uint_t ngx_inherited; | 34 extern ngx_uint_t ngx_inherited; |
35 extern ngx_uint_t ngx_daemonized; | |
49 extern ngx_uint_t ngx_threaded; | 36 extern ngx_uint_t ngx_threaded; |
50 extern ngx_uint_t ngx_exiting; | 37 extern ngx_uint_t ngx_exiting; |
51 | 38 |
52 extern sig_atomic_t ngx_reap; | 39 extern sig_atomic_t ngx_reap; |
53 extern sig_atomic_t ngx_timer; | 40 extern sig_atomic_t ngx_timer; |