Welcome! Log In Create A New Profile

Advanced

Re: what is ngx_cycle_t represent

Maxim Dounin
January 20, 2012 08:22AM
Hello!

On Fri, Jan 20, 2012 at 05:54:01AM -0500, supportnti wrote:

> Thanks Obi-Wan!
>
> I am going thru the source as we speak and would appreciate a helping
> hand!
>
> I can across "NGINX" environment variable in the function
> "ngx_add_inherited_sockets". What does the NGINX variable represent? And
> what does the function do?

The "NGINX" environment variable is used to pass listening sockets
from an old master process to a new one during binary upgrade
procedure. (Or, more strictly, it holds numbers of file
descriptors. Sockets remain opened across execve() call, but
new process needs to know their numbers.)

The ngx_add_inherited_sockets() function parses the environment
variable in question and adds sockets to the list of listening
sockets.

Maxim Dounin

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

what is ngx_cycle_t represent

supportnti January 09, 2012 06:29AM

Re: what is ngx_cycle_t represent

supportnti January 09, 2012 06:30AM

Re: what is ngx_cycle_t represent

Aleksandar Lazic January 09, 2012 07:10AM

Re: what is ngx_cycle_t represent

supportnti January 10, 2012 02:22AM

Re: what is ngx_cycle_t represent

freestyler January 10, 2012 02:32AM

Re: what is ngx_cycle_t represent

Maxim Dounin January 10, 2012 02:48AM

Re: what is ngx_cycle_t represent

supportnti January 10, 2012 04:13AM

Re: what is ngx_cycle_t represent

supportnti January 10, 2012 04:13AM

Re: what is ngx_cycle_t represent

Maxim Dounin January 10, 2012 05:44AM

Re: what is ngx_cycle_t represent

supportnti January 20, 2012 05:54AM

Re: what is ngx_cycle_t represent

Maxim Dounin January 20, 2012 08:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready