Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_process.h @ 222:99df0edb63ed
nginx-0.0.1-2004-01-09-00:02:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 08 Jan 2004 21:02:06 +0000 |
parents | 401154e21826 |
children | d427f1c3fe95 |
comparison
equal
deleted
inserted
replaced
221:401154e21826 | 222:99df0edb63ed |
---|---|
27 char *const *argv; | 27 char *const *argv; |
28 char *const *envp; | 28 char *const *envp; |
29 } ngx_exec_ctx_t; | 29 } ngx_exec_ctx_t; |
30 | 30 |
31 | 31 |
32 #define NGX_PROCESS_SINGLE 0 | 32 #define NGX_PROCESS_SINGLE 0 |
33 #define NGX_PROCESS_MASTER 1 | 33 #define NGX_PROCESS_MASTER 1 |
34 #define NGX_PROCESS_WORKER 2 | 34 #define NGX_PROCESS_WORKER 2 |
35 #define NGX_PROCESS_MASTER_QUIT 3 | 35 #define NGX_PROCESS_QUITING 3 |
36 #define NGX_PROCESS_PAUSED 4 | |
36 | 37 |
37 #define NGX_MAX_PROCESSES 1024 | 38 #define NGX_MAX_PROCESSES 1024 |
38 | 39 |
39 #define NGX_PROCESS_RESPAWN -1 | 40 #define NGX_PROCESS_RESPAWN -1 |
40 #define NGX_PROCESS_NORESPAWN -2 | 41 #define NGX_PROCESS_NORESPAWN -2 |
45 | 46 |
46 ngx_int_t ngx_spawn_process(ngx_cycle_t *cycle, | 47 ngx_int_t ngx_spawn_process(ngx_cycle_t *cycle, |
47 ngx_spawn_proc_pt proc, void *data, | 48 ngx_spawn_proc_pt proc, void *data, |
48 char *name, ngx_int_t respawn); | 49 char *name, ngx_int_t respawn); |
49 ngx_int_t ngx_exec(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); | 50 ngx_int_t ngx_exec(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); |
50 void ngx_signal_processes(ngx_cycle_t *cycle, ngx_int_t signal); | 51 void ngx_signal_processes(ngx_cycle_t *cycle, ngx_int_t signo); |
51 void ngx_respawn_processes(ngx_cycle_t *cycle); | 52 void ngx_respawn_processes(ngx_cycle_t *cycle); |
52 void ngx_process_get_status(void); | 53 void ngx_process_get_status(void); |
53 | 54 |
54 extern ngx_uint_t ngx_last_process; | 55 extern ngx_uint_t ngx_last_process; |
55 extern ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; | 56 extern ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; |