Welcome! Log In Create A New Profile

Advanced

main conf created twice, only closed once?

March 14, 2016 07:01AM
Hi,
I have a problem with a module I'm writing. I need to do something in the main config after variables are read from the conf file, so I have put this in the post_conf function. Then I need do something when to it when the process is closed via
./nginx -s reload
this is in the exit_process function. What I would expect is that for each reload there is one new main conf, this is not the case ( see output below ). Two new main configs are created, then only one of them is 'seen' by the exit_process.

create main conf mainconf=0x9908e8
post conf mainconf=0x9908e8
--- reload happens
create main conf mainconf=0xe508e8
post conf mainconf=0xe508e8
create main conf mainconf=0x993ef8
post conf mainconf=0x993ef8
exit mainconf=0x9908e8

So on reload, two new main configs are created, and the previous one is closed. This wouldn't be a problem, but every subsequent reload the same thing happens ( two are created, but only one of the previous two exited).

Anyone have any idea why this might happen?

Thanks.
Subject Author Posted

main conf created twice, only closed once?

ben5192 March 14, 2016 07:01AM

Re: main conf created twice, only closed once?

Maxim Dounin March 14, 2016 09:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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