why nginx clear environment when init process?

Ken xie.kenneth at gmail.com
Wed Jun 18 16:28:49 UTC 2014


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 at gmail.com
Twitter: kenneth_tse
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140619/b6ee004a/attachment.html>


More information about the nginx-devel mailing list