mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Introduced worker number, ngx_worker.
This commit is contained in:
parent
e58321a4ca
commit
68b3d28c55
@ -29,6 +29,7 @@ static void ngx_cache_loader_process_handler(ngx_event_t *ev);
|
||||
|
||||
|
||||
ngx_uint_t ngx_process;
|
||||
ngx_uint_t ngx_worker;
|
||||
ngx_pid_t ngx_pid;
|
||||
|
||||
sig_atomic_t ngx_reap;
|
||||
@ -731,6 +732,7 @@ ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data)
|
||||
ngx_connection_t *c;
|
||||
|
||||
ngx_process = NGX_PROCESS_WORKER;
|
||||
ngx_worker = worker;
|
||||
|
||||
ngx_worker_process_init(cycle, worker);
|
||||
|
||||
|
@ -39,6 +39,7 @@ void ngx_single_process_cycle(ngx_cycle_t *cycle);
|
||||
|
||||
|
||||
extern ngx_uint_t ngx_process;
|
||||
extern ngx_uint_t ngx_worker;
|
||||
extern ngx_pid_t ngx_pid;
|
||||
extern ngx_pid_t ngx_new_binary;
|
||||
extern ngx_uint_t ngx_inherited;
|
||||
|
@ -29,6 +29,7 @@ static ngx_thread_value_t __stdcall ngx_cache_loader_thread(void *data);
|
||||
|
||||
|
||||
ngx_uint_t ngx_process;
|
||||
ngx_uint_t ngx_worker;
|
||||
ngx_pid_t ngx_pid;
|
||||
|
||||
ngx_uint_t ngx_inherited;
|
||||
|
@ -25,6 +25,7 @@ void ngx_close_handle(HANDLE h);
|
||||
|
||||
|
||||
extern ngx_uint_t ngx_process;
|
||||
extern ngx_uint_t ngx_worker;
|
||||
extern ngx_pid_t ngx_pid;
|
||||
extern ngx_uint_t ngx_exiting;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user