Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_process.h @ 227:2ba3477070ac
nginx-0.0.1-2004-01-14-21:19:42 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 14 Jan 2004 18:19:42 +0000 |
parents | b0c1e21e68db |
children | e885208c518b |
comparison
equal
deleted
inserted
replaced
226:b0c1e21e68db | 227:2ba3477070ac |
---|---|
6 | 6 |
7 typedef void (*ngx_spawn_proc_pt) (ngx_cycle_t *cycle, void *data); | 7 typedef void (*ngx_spawn_proc_pt) (ngx_cycle_t *cycle, void *data); |
8 | 8 |
9 typedef struct { | 9 typedef struct { |
10 ngx_pid_t pid; | 10 ngx_pid_t pid; |
11 int signal; | |
11 int status; | 12 int status; |
12 | 13 |
13 ngx_spawn_proc_pt proc; | 14 ngx_spawn_proc_pt proc; |
14 void *data; | 15 void *data; |
15 char *name; | 16 char *name; |
16 | 17 |
17 unsigned respawn:1; | 18 unsigned respawn:1; |
18 unsigned detached:1; | 19 unsigned detached:1; |
19 unsigned signal:1; | |
20 unsigned exiting:1; | 20 unsigned exiting:1; |
21 unsigned exited:1; | 21 unsigned exited:1; |
22 } ngx_process_t; | 22 } ngx_process_t; |
23 | 23 |
24 | 24 |
45 | 45 |
46 ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle, | 46 ngx_pid_t ngx_spawn_process(ngx_cycle_t *cycle, |
47 ngx_spawn_proc_pt proc, void *data, | 47 ngx_spawn_proc_pt proc, void *data, |
48 char *name, ngx_int_t respawn); | 48 char *name, ngx_int_t respawn); |
49 ngx_pid_t ngx_exec(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); | 49 ngx_pid_t ngx_exec(ngx_cycle_t *cycle, ngx_exec_ctx_t *ctx); |
50 void ngx_signal_processes(ngx_cycle_t *cycle, ngx_int_t signo); | |
51 void ngx_respawn_processes(ngx_cycle_t *cycle); | 50 void ngx_respawn_processes(ngx_cycle_t *cycle); |
52 void ngx_process_get_status(void); | 51 void ngx_process_get_status(void); |
53 | 52 |
54 extern ngx_uint_t ngx_last_process; | 53 extern ngx_uint_t ngx_last_process; |
55 extern ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; | 54 extern ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; |