SIGHUP and ngx_module_t

Maxim Dounin mdounin at mdounin.ru
Tue Oct 28 12:51:19 UTC 2014


Hello!

On Tue, Oct 28, 2014 at 08:30:15AM +0200, Donatas Abraitis wrote:

> Hello,
> 
> is it true, that SIGHUP is not handled by ngx_module_t /* exit process */ ?
> 
> I mean if I have these defined:
> 
>     ngx_http_modsecurity_terminate, /* exit process */
>     ngx_http_modsecurity_terminate, /* exit master */
> 
> So, sending SIGHUP to the master it doesn't call the
> ngx_http_modsecurity_terminate(). If sending SIGTERM it does. How is it for
> real?

The exit_process callback is called on process exit, not on 
SIGHUP.  There is a difference, see here:

http://nginx.org/en/docs/control.html

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



More information about the nginx-devel mailing list