ccf 204 core/nginx.c ngx_core_conf_t *ccf; ccf 357 core/nginx.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 359 core/nginx.c if (ccf->master && ngx_process == NGX_PROCESS_SINGLE) { ccf 369 core/nginx.c if (!ngx_inherited && ccf->daemon) { ccf 379 core/nginx.c if (ngx_create_pidfile(&ccf->pid, cycle->log) != NGX_OK) { ccf 471 core/nginx.c ngx_core_conf_t *ccf; ccf 473 core/nginx.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 475 core/nginx.c if (last == NULL && ccf->environment) { ccf 476 core/nginx.c return ccf->environment; ccf 479 core/nginx.c var = ccf->env.elts; ccf 481 core/nginx.c for (i = 0; i < ccf->env.nelts; i++) { ccf 489 core/nginx.c var = ngx_array_push(&ccf->env); ccf 497 core/nginx.c var = ccf->env.elts; ccf 503 core/nginx.c for (i = 0; i < ccf->env.nelts; i++) { ccf 535 core/nginx.c for (i = 0; i < ccf->env.nelts; i++) { ccf 556 core/nginx.c ccf->environment = env; ccf 572 core/nginx.c ngx_core_conf_t *ccf; ccf 627 core/nginx.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 629 core/nginx.c if (ngx_rename_file(ccf->pid.data, ccf->oldpid.data) != NGX_OK) { ccf 633 core/nginx.c ccf->pid.data, ccf->oldpid.data, argv[0]); ccf 644 core/nginx.c if (ngx_rename_file(ccf->oldpid.data, ccf->pid.data) != NGX_OK) { ccf 648 core/nginx.c ccf->oldpid.data, ccf->pid.data, argv[0]); ccf 923 core/nginx.c ngx_core_conf_t *ccf; ccf 925 core/nginx.c ccf = ngx_pcalloc(cycle->pool, sizeof(ngx_core_conf_t)); ccf 926 core/nginx.c if (ccf == NULL) { ccf 940 core/nginx.c ccf->daemon = NGX_CONF_UNSET; ccf 941 core/nginx.c ccf->master = NGX_CONF_UNSET; ccf 942 core/nginx.c ccf->timer_resolution = NGX_CONF_UNSET_MSEC; ccf 944 core/nginx.c ccf->worker_processes = NGX_CONF_UNSET; ccf 945 core/nginx.c ccf->debug_points = NGX_CONF_UNSET; ccf 947 core/nginx.c ccf->rlimit_nofile = NGX_CONF_UNSET; ccf 948 core/nginx.c ccf->rlimit_core = NGX_CONF_UNSET; ccf 949 core/nginx.c ccf->rlimit_sigpending = NGX_CONF_UNSET; ccf 951 core/nginx.c ccf->user = (ngx_uid_t) NGX_CONF_UNSET_UINT; ccf 952 core/nginx.c ccf->group = (ngx_gid_t) NGX_CONF_UNSET_UINT; ccf 955 core/nginx.c ccf->worker_threads = NGX_CONF_UNSET; ccf 956 core/nginx.c ccf->thread_stack_size = NGX_CONF_UNSET_SIZE; ccf 959 core/nginx.c if (ngx_array_init(&ccf->env, cycle->pool, 1, sizeof(ngx_str_t)) ccf 965 core/nginx.c return ccf; ccf 972 core/nginx.c ngx_core_conf_t *ccf = conf; ccf 974 core/nginx.c ngx_conf_init_value(ccf->daemon, 1); ccf 975 core/nginx.c ngx_conf_init_value(ccf->master, 1); ccf 976 core/nginx.c ngx_conf_init_msec_value(ccf->timer_resolution, 0); ccf 978 core/nginx.c ngx_conf_init_value(ccf->worker_processes, 1); ccf 979 core/nginx.c ngx_conf_init_value(ccf->debug_points, 0); ccf 983 core/nginx.c if (ccf->cpu_affinity_n ccf 984 core/nginx.c && ccf->cpu_affinity_n != 1 ccf 985 core/nginx.c && ccf->cpu_affinity_n != (ngx_uint_t) ccf->worker_processes) ccf 997 core/nginx.c ngx_conf_init_value(ccf->worker_threads, 0); ccf 998 core/nginx.c ngx_threads_n = ccf->worker_threads; ccf 999 core/nginx.c ngx_conf_init_size_value(ccf->thread_stack_size, 2 * 1024 * 1024); ccf 1004 core/nginx.c if (ccf->pid.len == 0) { ccf 1005 core/nginx.c ngx_str_set(&ccf->pid, NGX_PID_PATH); ccf 1008 core/nginx.c if (ngx_conf_full_name(cycle, &ccf->pid, 0) != NGX_OK) { ccf 1012 core/nginx.c ccf->oldpid.len = ccf->pid.len + sizeof(NGX_OLDPID_EXT); ccf 1014 core/nginx.c ccf->oldpid.data = ngx_pnalloc(cycle->pool, ccf->oldpid.len); ccf 1015 core/nginx.c if (ccf->oldpid.data == NULL) { ccf 1019 core/nginx.c ngx_memcpy(ngx_cpymem(ccf->oldpid.data, ccf->pid.data, ccf->pid.len), ccf 1025 core/nginx.c if (ccf->user == (uid_t) NGX_CONF_UNSET_UINT && geteuid() == 0) { ccf 1037 core/nginx.c ccf->username = NGX_USER; ccf 1038 core/nginx.c ccf->user = pwd->pw_uid; ccf 1048 core/nginx.c ccf->group = grp->gr_gid; ccf 1052 core/nginx.c if (ccf->lock_file.len == 0) { ccf 1053 core/nginx.c ngx_str_set(&ccf->lock_file, NGX_LOCK_PATH); ccf 1056 core/nginx.c if (ngx_conf_full_name(cycle, &ccf->lock_file, 0) != NGX_OK) { ccf 1068 core/nginx.c if (ccf->lock_file.len != lock_file.len ccf 1069 core/nginx.c || ngx_strncmp(ccf->lock_file.data, lock_file.data, lock_file.len) ccf 1085 core/nginx.c cycle->lock_file.len = ccf->lock_file.len + 1; ccf 1087 core/nginx.c ccf->lock_file.len + sizeof(".accept")); ccf 1092 core/nginx.c ngx_memcpy(ngx_cpymem(cycle->lock_file.data, ccf->lock_file.data, ccf 1093 core/nginx.c ccf->lock_file.len), ccf 1116 core/nginx.c ngx_core_conf_t *ccf = conf; ccf 1123 core/nginx.c if (ccf->user != (uid_t) NGX_CONF_UNSET_UINT) { ccf 1137 core/nginx.c ccf->username = (char *) value[1].data; ccf 1147 core/nginx.c ccf->user = pwd->pw_uid; ccf 1159 core/nginx.c ccf->group = grp->gr_gid; ccf 1170 core/nginx.c ngx_core_conf_t *ccf = conf; ccf 1175 core/nginx.c var = ngx_array_push(&ccf->env); ccf 1200 core/nginx.c ngx_core_conf_t *ccf = conf; ccf 1205 core/nginx.c if (ccf->priority != 0) { ccf 1224 core/nginx.c ccf->priority = ngx_atoi(&value[1].data[n], value[1].len - n); ccf 1225 core/nginx.c if (ccf->priority == NGX_ERROR) { ccf 1230 core/nginx.c ccf->priority = -ccf->priority; ccf 1241 core/nginx.c ngx_core_conf_t *ccf = conf; ccf 1248 core/nginx.c if (ccf->cpu_affinity) { ccf 1257 core/nginx.c ccf->cpu_affinity_n = cf->args->nelts - 1; ccf 1258 core/nginx.c ccf->cpu_affinity = mask; ccf 1312 core/nginx.c ngx_core_conf_t *ccf; ccf 1314 core/nginx.c ccf = (ngx_core_conf_t *) ngx_get_conf(ngx_cycle->conf_ctx, ccf 1317 core/nginx.c if (ccf->cpu_affinity == NULL) { ccf 1321 core/nginx.c if (ccf->cpu_affinity_n > n) { ccf 1322 core/nginx.c return ccf->cpu_affinity[n]; ccf 1325 core/nginx.c return ccf->cpu_affinity[ccf->cpu_affinity_n - 1]; ccf 56 core/ngx_cycle.c ngx_core_conf_t *ccf, *old_ccf; ccf 300 core/ngx_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 304 core/ngx_cycle.c if (ngx_create_pidfile(&ccf->pid, log) != NGX_OK) { ccf 317 core/ngx_cycle.c if (ccf->pid.len != old_ccf->pid.len ccf 318 core/ngx_cycle.c || ngx_strcmp(ccf->pid.data, old_ccf->pid.data) != 0) ccf 322 core/ngx_cycle.c if (ngx_create_pidfile(&ccf->pid, log) != NGX_OK) { ccf 336 core/ngx_cycle.c if (ngx_create_pathes(cycle, ccf->user) != NGX_OK) { ccf 1019 core/ngx_cycle.c ngx_core_conf_t *ccf; ccf 1021 core/ngx_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 1023 core/ngx_cycle.c name = ngx_new_binary ? ccf->oldpid.data : ccf->pid.data; ccf 1038 core/ngx_cycle.c ngx_core_conf_t *ccf; ccf 1043 core/ngx_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 1045 core/ngx_cycle.c file.name = ccf->pid; ccf 433 event/ngx_event.c ngx_core_conf_t *ccf; ccf 451 event/ngx_event.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 453 event/ngx_event.c ngx_timer_resolution = ccf->timer_resolution; ccf 466 event/ngx_event.c && (ccf->rlimit_nofile == NGX_CONF_UNSET ccf 467 event/ngx_event.c || ecf->connections > (ngx_uint_t) ccf->rlimit_nofile)) ccf 469 event/ngx_event.c limit = (ccf->rlimit_nofile == NGX_CONF_UNSET) ? ccf 470 event/ngx_event.c (ngx_int_t) rlmt.rlim_cur : ccf->rlimit_nofile; ccf 482 event/ngx_event.c if (ccf->master == 0) { ccf 580 event/ngx_event.c ngx_core_conf_t *ccf; ccf 584 event/ngx_event.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 587 event/ngx_event.c if (ccf->master && ccf->worker_processes > 1 && ecf->accept_mutex) { ccf 1156 event/ngx_event.c ngx_core_conf_t *ccf; ccf 1257 event/ngx_event.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 1259 event/ngx_event.c if (ccf->worker_processes == 0) { ccf 550 os/unix/ngx_process.c ngx_core_conf_t *ccf; ccf 552 os/unix/ngx_process.c ccf = (ngx_core_conf_t *) ngx_get_conf(ngx_cycle->conf_ctx, ccf 555 os/unix/ngx_process.c switch (ccf->debug_points) { ccf 95 os/unix/ngx_process_cycle.c ngx_core_conf_t *ccf; ccf 134 os/unix/ngx_process_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 136 os/unix/ngx_process_cycle.c ngx_start_worker_processes(cycle, ccf->worker_processes, ccf 197 os/unix/ngx_process_cycle.c sigio = ccf->worker_processes + 2 /* cache processes */; ccf 230 os/unix/ngx_process_cycle.c ngx_start_worker_processes(cycle, ccf->worker_processes, ccf 247 os/unix/ngx_process_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ccf 249 os/unix/ngx_process_cycle.c ngx_start_worker_processes(cycle, ccf->worker_processes, ccf 259 os/unix/ngx_process_cycle.c ngx_start_worker_processes(cycle, ccf->worker_processes, ccf 268 os/unix/ngx_process_cycle.c ngx_reopen_files(cycle, ccf->user); ccf 560 os/unix/ngx_process_cycle.c ngx_core_conf_t *ccf; ccf 642 os/unix/ngx_process_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ccf 645 os/unix/ngx_process_cycle.c if (ngx_rename_file((char *) ccf->oldpid.data, ccf 646 os/unix/ngx_process_cycle.c (char *) ccf->pid.data) ccf 652 os/unix/ngx_process_cycle.c ccf->oldpid.data, ccf->pid.data, ngx_argv[0]); ccf 732 os/unix/ngx_process_cycle.c ngx_core_conf_t *ccf; ccf 734 os/unix/ngx_process_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 737 os/unix/ngx_process_cycle.c if (ngx_init_threads(ngx_threads_n, ccf->thread_stack_size, cycle) ccf 836 os/unix/ngx_process_cycle.c ngx_core_conf_t *ccf; ccf 844 os/unix/ngx_process_cycle.c ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); ccf 846 os/unix/ngx_process_cycle.c if (priority && ccf->priority != 0) { ccf 847 os/unix/ngx_process_cycle.c if (setpriority(PRIO_PROCESS, 0, ccf->priority) == -1) { ccf 849 os/unix/ngx_process_cycle.c "setpriority(%d) failed", ccf->priority); ccf 853 os/unix/ngx_process_cycle.c if (ccf->rlimit_nofile != NGX_CONF_UNSET) { ccf 854 os/unix/ngx_process_cycle.c rlmt.rlim_cur = (rlim_t) ccf->rlimit_nofile; ccf 855 os/unix/ngx_process_cycle.c rlmt.rlim_max = (rlim_t) ccf->rlimit_nofile; ccf 860 os/unix/ngx_process_cycle.c ccf->rlimit_nofile); ccf 864 os/unix/ngx_process_cycle.c if (ccf->rlimit_core != NGX_CONF_UNSET) { ccf 865 os/unix/ngx_process_cycle.c rlmt.rlim_cur = (rlim_t) ccf->rlimit_core; ccf 866 os/unix/ngx_process_cycle.c rlmt.rlim_max = (rlim_t) ccf->rlimit_core; ccf 871 os/unix/ngx_process_cycle.c ccf->rlimit_core); ccf 876 os/unix/ngx_process_cycle.c if (ccf->rlimit_sigpending != NGX_CONF_UNSET) { ccf 877 os/unix/ngx_process_cycle.c rlmt.rlim_cur = (rlim_t) ccf->rlimit_sigpending; ccf 878 os/unix/ngx_process_cycle.c rlmt.rlim_max = (rlim_t) ccf->rlimit_sigpending; ccf 883 os/unix/ngx_process_cycle.c ccf->rlimit_sigpending); ccf 889 os/unix/ngx_process_cycle.c if (setgid(ccf->group) == -1) { ccf 891 os/unix/ngx_process_cycle.c "setgid(%d) failed", ccf->group); ccf 896 os/unix/ngx_process_cycle.c if (initgroups(ccf->username, ccf->group) == -1) { ccf 899 os/unix/ngx_process_cycle.c ccf->username, ccf->group); ccf 902 os/unix/ngx_process_cycle.c if (setuid(ccf->user) == -1) { ccf 904 os/unix/ngx_process_cycle.c "setuid(%d) failed", ccf->user); ccf 935 os/unix/ngx_process_cycle.c if (ccf->working_directory.len) { ccf 936 os/unix/ngx_process_cycle.c if (chdir((char *) ccf->working_directory.data) == -1) { ccf 938 os/unix/ngx_process_cycle.c "chdir(\"%s\") failed", ccf->working_directory.data);