Klaus Demo nginx / 44063a7
make code clearer Igor Sysoev 10 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
204204 static ngx_int_t
205205 ngx_select_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags)
206206 {
207 ngx_event_t *e;
207208 ngx_connection_t *c;
208209
209210 c = ev->data;
244245 #endif
245246
246247 if (ev->index < --nevents) {
247 event_index[ev->index] = event_index[nevents];
248 event_index[ev->index]->index = ev->index;
248 e = event_index[nevents];
249 event_index[ev->index] = e;
250 e->index = ev->index;
249251 }
250252
251253 ev->index = NGX_INVALID_INDEX;