comparison src/os/unix/ngx_process_cycle.c @ 6402:7296b38f6416

Core: added support for more than 64 CPUs in worker_cpu_affinity.
author Vladimir Homutov <vl@nginx.com>
date Thu, 18 Feb 2016 13:58:49 +0300
parents cf5e822cf470
children f01ab2dbcfdc
comparison
equal deleted inserted replaced
6401:6812ca9a8002 6402:7296b38f6416
782 782
783 static void 783 static void
784 ngx_worker_process_init(ngx_cycle_t *cycle, ngx_int_t worker) 784 ngx_worker_process_init(ngx_cycle_t *cycle, ngx_int_t worker)
785 { 785 {
786 sigset_t set; 786 sigset_t set;
787 uint64_t cpu_affinity;
788 ngx_int_t n; 787 ngx_int_t n;
789 ngx_uint_t i; 788 ngx_uint_t i;
789 ngx_cpuset_t *cpu_affinity;
790 struct rlimit rlmt; 790 struct rlimit rlmt;
791 ngx_core_conf_t *ccf; 791 ngx_core_conf_t *ccf;
792 ngx_listening_t *ls; 792 ngx_listening_t *ls;
793 793
794 if (ngx_set_environment(cycle, NULL) == NULL) { 794 if (ngx_set_environment(cycle, NULL) == NULL) {