comparison src/os/unix/ngx_process_cycle.c @ 1069:e6fc18f1a032

env
author Igor Sysoev <igor@sysoev.ru>
date Sat, 20 Jan 2007 19:26:48 +0000
parents d1d8cde9aab9
children 4576627269ab
comparison
equal deleted inserted replaced
1068:b88395feb707 1069:e6fc18f1a032
755 755
756 756
757 static void 757 static void
758 ngx_worker_process_init(ngx_cycle_t *cycle, ngx_uint_t priority) 758 ngx_worker_process_init(ngx_cycle_t *cycle, ngx_uint_t priority)
759 { 759 {
760 sigset_t set; 760 sigset_t set;
761 ngx_int_t n; 761 ngx_int_t n;
762 ngx_uint_t i; 762 ngx_uint_t i;
763 struct rlimit rlmt; 763 struct rlimit rlmt;
764 ngx_core_conf_t *ccf; 764 ngx_core_conf_t *ccf;
765 ngx_listening_t *ls; 765 ngx_listening_t *ls;
766 766
767 ngx_process = NGX_PROCESS_WORKER; 767 ngx_process = NGX_PROCESS_WORKER;
768
769 if (ngx_set_environment(cycle, NULL) == NULL) {
770 /* fatal */
771 exit(2);
772 }
768 773
769 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 774 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
770 775
771 if (geteuid() == 0) { 776 if (geteuid() == 0) {
772 if (priority && ccf->priority != 0) { 777 if (priority && ccf->priority != 0) {