Welcome! Log In Create A New Profile

Advanced

Re: why nginx clear environment when init process?

Maxim Dounin
June 18, 2014 03:04PM
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/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

why nginx clear environment when init process?

Ken 713 June 18, 2014 12:30PM

Re: why nginx clear environment when init process?

Maxim Dounin 397 June 18, 2014 03:04PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 137
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready