comparison src/os/unix/ngx_process.c @ 220:4f81b931e9ff

nginx-0.0.1-2004-01-08-11:47:17 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 08 Jan 2004 08:47:17 +0000
parents f57597ec5249
children 401154e21826
comparison
equal deleted inserted replaced
219:f57597ec5249 220:4f81b931e9ff
5 5
6 static void ngx_exec_proc(ngx_cycle_t *cycle, void *data); 6 static void ngx_exec_proc(ngx_cycle_t *cycle, void *data);
7 7
8 ngx_uint_t ngx_last_process; 8 ngx_uint_t ngx_last_process;
9 ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; 9 ngx_process_t ngx_processes[NGX_MAX_PROCESSES];
10
11 sigset_t ngx_sigmask;
12
13
14 void ngx_wait_events()
15 {
16 sigsuspend(&ngx_sigmask);
17 }
10 18
11 19
12 ngx_int_t ngx_spawn_process(ngx_cycle_t *cycle, 20 ngx_int_t ngx_spawn_process(ngx_cycle_t *cycle,
13 ngx_spawn_proc_pt proc, void *data, 21 ngx_spawn_proc_pt proc, void *data,
14 char *name, ngx_int_t respawn) 22 char *name, ngx_int_t respawn)