Mercurial > hg > nginx
comparison src/event/modules/ngx_kqueue_module.c @ 92:19cc647ecd91
nginx-0.0.1-2003-05-20-19:37:55 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 20 May 2003 15:37:55 +0000 |
parents | 637625a2acdb |
children | 738fe44c70d5 |
comparison
equal
deleted
inserted
replaced
91:637625a2acdb | 92:19cc647ecd91 |
---|---|
145 static int ngx_kqueue_add_event(ngx_event_t *ev, int event, u_int flags) | 145 static int ngx_kqueue_add_event(ngx_event_t *ev, int event, u_int flags) |
146 { | 146 { |
147 ngx_connection_t *c; | 147 ngx_connection_t *c; |
148 | 148 |
149 ev->active = 1; | 149 ev->active = 1; |
150 ev->oneshot = (flags & NGX_ONESHOT_EVENT) ? 1: 0; | 150 ev->oneshot = (flags & NGX_ONESHOT_EVENT) ? 1 : 0; |
151 | 151 |
152 if (nchanges > 0 | 152 if (nchanges > 0 |
153 && ev->index < nchanges | 153 && ev->index < nchanges |
154 && (void *) ((uintptr_t) change_list[ev->index].udata & ~1) == ev) | 154 && (void *) ((uintptr_t) change_list[ev->index].udata & ~1) == ev) |
155 { | 155 { |