Fixed handling of SIGWINCH/NOACCEPT signal.

After first upgrade it was ignored since r4020 (1.1.1, 1.0.9) as
ngx_daemonized wasn't set.
This commit is contained in:
Maxim Dounin 2011-11-15 20:35:41 +00:00
parent 2fd9b49334
commit 2b24a67268

View File

@ -374,6 +374,10 @@ main(int argc, char *const *argv)
ngx_daemonized = 1;
}
if (ngx_inherited) {
ngx_daemonized = 1;
}
#endif
if (ngx_create_pidfile(&ccf->pid, cycle->log) != NGX_OK) {