comparison src/os/unix/ngx_process.c @ 355:0fb6c53fb135

nginx-0.0.7-2004-06-15-21:47:16 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 15 Jun 2004 17:47:16 +0000
parents eaf1f651cf86
children 239e37d44a34
comparison
equal deleted inserted replaced
354:eaf1f651cf86 355:0fb6c53fb135
4 #include <ngx_event.h> 4 #include <ngx_event.h>
5 5
6 6
7 static void ngx_execute_proc(ngx_cycle_t *cycle, void *data); 7 static void ngx_execute_proc(ngx_cycle_t *cycle, void *data);
8 8
9 ngx_int_t ngx_current_slot;
9 ngx_int_t ngx_last_process; 10 ngx_int_t ngx_last_process;
10 ngx_socket_t ngx_channel; 11 ngx_socket_t ngx_channel;
11 ngx_process_t ngx_processes[NGX_MAX_PROCESSES]; 12 ngx_process_t ngx_processes[NGX_MAX_PROCESSES];
12 13
13 14
42 "fcntl(F_SETOWN) failed while spawning \"%s\"", name); 43 "fcntl(F_SETOWN) failed while spawning \"%s\"", name);
43 return NGX_ERROR; 44 return NGX_ERROR;
44 } 45 }
45 46
46 ngx_channel = ngx_processes[s].channel[1]; 47 ngx_channel = ngx_processes[s].channel[1];
48 ngx_current_slot = s;
47 49
48 50
49 pid = fork(); 51 pid = fork();
50 52
51 switch (pid) { 53 switch (pid) {