<div dir="ltr"><div>in </div><div><br></div>static void<br>ngx_procs_process_init(ngx_cycle_t *cycle, ngx_proc_module_t *module,<br> ngx_int_t priority)<br>{<br> .....<br><br> if (<b>ngx_set_environment(cycle, NULL)</b> == NULL) {<br>
/* fatal */<br> exit(2);<br> }<br><br>.....<div><br></div><div>why doing this? it make impossible to getenv in worker process.</div><div><br><br>Best wishes,<br>Kenneth Tse<br>Email: <a href="mailto:xie.kenneth@gmail.com">xie.kenneth@gmail.com</a><br>
Twitter: kenneth_tse</div></div>