Mercurial > hg > nginx-vendor-current
diff src/event/modules/ngx_rtsig_module.c @ 108:cf3d6edb3ad6 NGINX_0_3_1
nginx 0.3.1
*) Bugfix: the segmentation fault occurred when the signal queue
overflowed if the "rtsig" method was used; bug appeared in 0.2.0.
*) Change: correct handling of the "\\", "\"", "\'", and "\$" pairs in
SSI.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 10 Oct 2005 00:00:00 +0400 |
parents | 45f7329b4bd0 |
children | 408f195b3482 |
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