Mercurial > hg > nginx
diff 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 |
line wrap: on
line diff
--- a/src/os/unix/ngx_process_cycle.c Fri Jan 19 19:48:48 2007 +0000 +++ b/src/os/unix/ngx_process_cycle.c Sat Jan 20 19:26:48 2007 +0000 @@ -757,15 +757,20 @@ static void ngx_worker_process_init(ngx_cycle_t *cycle, ngx_uint_t priority) { - sigset_t set; - ngx_int_t n; - ngx_uint_t i; - struct rlimit rlmt; - ngx_core_conf_t *ccf; - ngx_listening_t *ls; + sigset_t set; + ngx_int_t n; + ngx_uint_t i; + struct rlimit rlmt; + ngx_core_conf_t *ccf; + ngx_listening_t *ls; ngx_process = NGX_PROCESS_WORKER; + if (ngx_set_environment(cycle, NULL) == NULL) { + /* fatal */ + exit(2); + } + ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); if (geteuid() == 0) {