Mercurial > hg > nginx
comparison src/os/unix/ngx_process_cycle.c @ 6151:b4cc553aafeb
Introduced worker number, ngx_worker.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 20 May 2015 15:51:21 +0300 |
parents | 967594ba7571 |
children | 5e6142609e48 |
comparison
equal
deleted
inserted
replaced
6150:0371ef1c24a9 | 6151:b4cc553aafeb |
---|---|
27 static void ngx_cache_manager_process_handler(ngx_event_t *ev); | 27 static void ngx_cache_manager_process_handler(ngx_event_t *ev); |
28 static void ngx_cache_loader_process_handler(ngx_event_t *ev); | 28 static void ngx_cache_loader_process_handler(ngx_event_t *ev); |
29 | 29 |
30 | 30 |
31 ngx_uint_t ngx_process; | 31 ngx_uint_t ngx_process; |
32 ngx_uint_t ngx_worker; | |
32 ngx_pid_t ngx_pid; | 33 ngx_pid_t ngx_pid; |
33 | 34 |
34 sig_atomic_t ngx_reap; | 35 sig_atomic_t ngx_reap; |
35 sig_atomic_t ngx_sigio; | 36 sig_atomic_t ngx_sigio; |
36 sig_atomic_t ngx_sigalrm; | 37 sig_atomic_t ngx_sigalrm; |
729 | 730 |
730 ngx_uint_t i; | 731 ngx_uint_t i; |
731 ngx_connection_t *c; | 732 ngx_connection_t *c; |
732 | 733 |
733 ngx_process = NGX_PROCESS_WORKER; | 734 ngx_process = NGX_PROCESS_WORKER; |
735 ngx_worker = worker; | |
734 | 736 |
735 ngx_worker_process_init(cycle, worker); | 737 ngx_worker_process_init(cycle, worker); |
736 | 738 |
737 ngx_setproctitle("worker process"); | 739 ngx_setproctitle("worker process"); |
738 | 740 |