Welcome! Log In Create A New Profile

Advanced

Re: Newbie: Shmem constructor not being called after reload

Maxim Dounin
July 16, 2015 06:32PM
Hello!

On Thu, Jul 16, 2015 at 07:07:28PM -0300, Acácio Centeno wrote:

[...]

> The message to stderr is printed when Nginx starts, but not after a reload,
> that's why I know that the constructor is not being called again. Also, I
> have a counter on the shared area and it's value is reset after a reload.
>
> Any thoughts?

First of all, you need some other method for debugging, or a way
to make sure that stderr is not closed in your particular setup.
Normally nginx closes stderr while becoming a daemon, so it's
expected that printing to stderr won't work.

Normally one should use ngx_log_error() and/or ngx_log_debugN()
to print log and/or debug messages.

--
Maxim Dounin
http://nginx.org/

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

Newbie: Shmem constructor not being called after reload

Acácio Centeno 788 July 16, 2015 06:08PM

Re: Newbie: Shmem constructor not being called after reload

Maxim Dounin 413 July 16, 2015 06:32PM



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

Online Users

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