Mercurial > hg > nginx
diff src/event/modules/ngx_rtsig_module.c @ 559:c1f965ef9718 release-0.3.1
nginx-0.3.1-RELEASE import
*) Bugfix: the segmentation fault occurred when the signal queue
overflowed if the "rtsig" method was used; the bug had appeared in
0.2.0.
*) Change: correct handling of the "\\", "\"", "\'", and "\$" pairs in
SSI.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Oct 2005 12:59:41 +0000 |
parents | ecd9c160f25b |
children | 9c2f3ed7a247 |
line wrap: on
line diff
--- a/src/event/modules/ngx_rtsig_module.c +++ b/src/event/modules/ngx_rtsig_module.c @@ -307,7 +307,6 @@ ngx_rtsig_process_events(ngx_cycle_t *cy if (timer == NGX_TIMER_INFINITE || timer > 500) { timer = 500; - break; } #endif @@ -578,7 +577,7 @@ ngx_rtsig_process_overflow(ngx_cycle_t * c = cycle->files[overflow_current++]; - if (c->fd == -1) { + if (c == NULL || c->fd == -1) { continue; } @@ -634,6 +633,10 @@ ngx_rtsig_process_overflow(ngx_cycle_t * for (i = 0; i < n; i++) { c = cycle->files[overflow_list[i].fd]; + if (c == NULL) { + continue; + } + rev = c->read; if (rev->active