comparison src/event/ngx_event_accept.c @ 377:41437e4fd9b4

nginx-0.0.7-2004-07-05-19:08:23 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 05 Jul 2004 15:08:23 +0000
parents 213f17e9f776
children 73688d5d7fc3
comparison
equal deleted inserted replaced
376:d0451e402e27 377:41437e4fd9b4
208 208
209 instance = rev->instance; 209 instance = rev->instance;
210 rinstance = rev->returned_instance; 210 rinstance = rev->returned_instance;
211 winstance = wev->returned_instance; 211 winstance = wev->returned_instance;
212 212
213 #if (NGX_THREADS)
214 if (*(rev->lock)) {
215 ngx_spinlock(rev->lock, 1000);
216 ngx_unlock(rev->lock);
217 }
218 #endif
219
213 ngx_memzero(rev, sizeof(ngx_event_t)); 220 ngx_memzero(rev, sizeof(ngx_event_t));
214 ngx_memzero(wev, sizeof(ngx_event_t)); 221 ngx_memzero(wev, sizeof(ngx_event_t));
215 ngx_memzero(c, sizeof(ngx_connection_t)); 222 ngx_memzero(c, sizeof(ngx_connection_t));
216
217 /* ngx_memzero(c) does ngx_unlock(&c->lock); */
218 223
219 c->pool = pool; 224 c->pool = pool;
220 225
221 c->listening = ls->listening; 226 c->listening = ls->listening;
222 c->sockaddr = sa; 227 c->sockaddr = sa;