aboutsummaryrefslogtreecommitdiff
path: root/src/event/modules/ngx_rtsig_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-10-03 12:53:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-10-03 12:53:14 +0000
commit82dc95eadd3f9cca3619f1797d91ffd751f422ea (patch)
tree4e375369da607f1155b48279281b73afea4fa23e /src/event/modules/ngx_rtsig_module.c
parent23d23c1e8ecc390ca403e1234a22f4291ee38b23 (diff)
downloadnginx-release-0.2.4.tar.gz
nginx-release-0.2.4.zip
nginx-0.2.4-RELEASE importrelease-0.2.4
*) 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.
Diffstat (limited to 'src/event/modules/ngx_rtsig_module.c')
-rw-r--r--src/event/modules/ngx_rtsig_module.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/event/modules/ngx_rtsig_module.c b/src/event/modules/ngx_rtsig_module.c
index 92e33a013..9c5df5d2f 100644
--- a/src/event/modules/ngx_rtsig_module.c
+++ b/src/event/modules/ngx_rtsig_module.c
@@ -428,10 +428,16 @@ ngx_rtsig_process_events(ngx_cycle_t *cycle)
return NGX_OK;
}
- /* TODO: old_cycles */
-
c = ngx_cycle->files[si.si_fd];
+ if (c == NULL) {
+ /* the stale event */
+
+ ngx_accept_mutex_unlock();
+
+ return NGX_OK;
+ }
+
instance = signo - rtscf->signo;
rev = c->read;