Welcome! Log In Create A New Profile

Advanced

Re: dose nginx support -HUP in single process mode? (Bug)

Maxim Dounin
January 11, 2011 12:38AM
Hello!

On Tue, Jan 11, 2011 at 11:49:41AM +0800, Wu Bingzheng wrote:

> dose nginx support -HUP to reload configure in single process mode?
>
> It seems that it does support in the code: 'src/os/unix/ngx_process.c:ngx_signal_handler()'.
>
> However I think there is a bug when kill HUP to nginx in single process. we can show it like:
>
> add `master_process off` in configure file;
> run nginx;
> kill -HUP `cat logs/nginx.log`;
> kill -HUP `cat logs/nginx.log`; (yes, we kill HUP twice)
>
> then wait for about half of minite, the nignx will *core*!
>
> Nginx aborts at 'src/core/ngx_cycle.c:ngx_clean_old_cycles(): if (cycle[i]->connections[n].fd != (ngx_socket_t) -1)', where cycle[i].connections is NULL.
> The reason maybe nginx creates new cycle in ngx_init_cycle(), but didn't call the ngx_event_process_init() to init the connections.

Working without master process is intended for development only
and doesn't support configuration reloading.

Maxim Dounin

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

dose nginx support -HUP in single process mode? (Bug)

Wu Bingzheng January 10, 2011 10:54PM

Re: dose nginx support -HUP in single process mode? (Bug)

Maxim Dounin January 11, 2011 12:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 199
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready