comparison 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
comparison
equal deleted inserted replaced
107:495d867e35e8 108:cf3d6edb3ad6
305 return NGX_ERROR; 305 return NGX_ERROR;
306 } 306 }
307 307
308 if (timer == NGX_TIMER_INFINITE || timer > 500) { 308 if (timer == NGX_TIMER_INFINITE || timer > 500) {
309 timer = 500; 309 timer = 500;
310 break;
311 } 310 }
312 311
313 #endif 312 #endif
314 313
315 if (ngx_accept_mutex) { 314 if (ngx_accept_mutex) {
576 break; 575 break;
577 } 576 }
578 577
579 c = cycle->files[overflow_current++]; 578 c = cycle->files[overflow_current++];
580 579
581 if (c->fd == -1) { 580 if (c == NULL || c->fd == -1) {
582 continue; 581 continue;
583 } 582 }
584 583
585 events = 0; 584 events = 0;
586 585
631 return NGX_ERROR; 630 return NGX_ERROR;
632 } 631 }
633 632
634 for (i = 0; i < n; i++) { 633 for (i = 0; i < n; i++) {
635 c = cycle->files[overflow_list[i].fd]; 634 c = cycle->files[overflow_list[i].fd];
635
636 if (c == NULL) {
637 continue;
638 }
636 639
637 rev = c->read; 640 rev = c->read;
638 641
639 if (rev->active 642 if (rev->active
640 && !rev->closed 643 && !rev->closed