Welcome! Log In Create A New Profile

Advanced

why nginx clear environment when init process?

Ken
June 18, 2014 12:30PM
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.


Best wishes,
Kenneth Tse
Email: xie.kenneth@gmail.com
Twitter: kenneth_tse
_______________________________________________
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 718 June 18, 2014 12:30PM

Re: why nginx clear environment when init process?

Maxim Dounin 403 June 18, 2014 03:04PM



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

Online Users

Guests: 79
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