comparison src/event/modules/ngx_kqueue_module.c @ 313:98f1a8028067

nginx-0.0.3-2004-04-13-19:08:48 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 13 Apr 2004 15:08:48 +0000
parents 11ff50a35d6d
children 39b6f2df45c0
comparison
equal deleted inserted replaced
312:f5431a4bbc7d 313:98f1a8028067
233 { 233 {
234 ngx_event_t *e; 234 ngx_event_t *e;
235 235
236 ev->active = 0; 236 ev->active = 0;
237 ev->disabled = 0; 237 ev->disabled = 0;
238 ev->posted = 0;
238 239
239 if (nchanges > 0 240 if (nchanges > 0
240 && ev->index < (u_int) nchanges 241 && ev->index < (u_int) nchanges
241 && ((uintptr_t) change_list[ev->index].udata & (uintptr_t) ~1) 242 && ((uintptr_t) change_list[ev->index].udata & (uintptr_t) ~1)
242 == (uintptr_t) ev) 243 == (uintptr_t) ev)
261 * its filters so we do not need to delete explicity the event 262 * its filters so we do not need to delete explicity the event
262 * before the closing the file descriptor. 263 * before the closing the file descriptor.
263 */ 264 */
264 265
265 if (flags & NGX_CLOSE_EVENT) { 266 if (flags & NGX_CLOSE_EVENT) {
266 ev->posted = 0;
267 return NGX_OK; 267 return NGX_OK;
268 } 268 }
269 269
270 if (flags & NGX_DISABLE_EVENT) { 270 if (flags & NGX_DISABLE_EVENT) {
271 ev->disabled = 1; 271 ev->disabled = 1;