diff src/event/modules/ngx_rtsig_module.c @ 551:483cca230603 release-0.2.4

nginx-0.2.4-RELEASE import *) Feature: the ngx_http_ssi_module supports "$var=text", "$var!=text", "$var=/text/", and "$var!=/text/" expressions in the "if" command. *) Bugfix: in proxying location without trailing slash; the bug had appeared in 0.1.44. *) Bugfix: the segmentation fault may occurred if the "rtsig" method was used; the bug had appeared in 0.2.0.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 03 Oct 2005 12:53:14 +0000
parents 511a89da35ad
children ecd9c160f25b
line wrap: on
line diff
--- a/src/event/modules/ngx_rtsig_module.c
+++ b/src/event/modules/ngx_rtsig_module.c
@@ -428,9 +428,15 @@ ngx_rtsig_process_events(ngx_cycle_t *cy
             return NGX_OK;
         }
 
-        /* TODO: old_cycles */
+        c = ngx_cycle->files[si.si_fd];
+
+        if (c == NULL) {
+            /* the stale event */
 
-        c = ngx_cycle->files[si.si_fd];
+            ngx_accept_mutex_unlock();
+
+            return NGX_OK;
+        }
 
         instance = signo - rtscf->signo;