why nginx clear environment when init process?
Maxim Dounin
mdounin at mdounin.ru
Wed Jun 18 19:02:46 UTC 2014
Hello!
On Thu, Jun 19, 2014 at 12:28:49AM +0800, Ken wrote:
> in
>
> static void
> ngx_procs_process_init(ngx_cycle_t *cycle, ngx_proc_module_t *module,
> ngx_int_t priority)
> {
> .....
>
> if (*ngx_set_environment(cycle, NULL)* == NULL) {
> /* fatal */
> exit(2);
> }
>
> .....
>
> why doing this? it make impossible to getenv in worker process.
http://nginx.org/r/env
--
Maxim Dounin
http://nginx.org/
More information about the nginx-devel
mailing list