comparison src/event/ngx_event_posted.c @ 372:c9fdfccebc49

nginx-0.0.7-2004-06-29-01:03:14 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 28 Jun 2004 21:03:14 +0000
parents 780e93985b93
children 018569a8f09c
comparison
equal deleted inserted replaced
371:780e93985b93 372:c9fdfccebc49
90 90
91 if ((!ev->posted && !ev->active) 91 if ((!ev->posted && !ev->active)
92 || (ev->use_instance && ev->instance != ev->returned_instance)) 92 || (ev->use_instance && ev->instance != ev->returned_instance))
93 { 93 {
94 /* 94 /*
95 * the stale event from a file descriptor 95 * The stale event from a file descriptor that was just
96 * that was just closed in this iteration 96 * closed in this iteration. We use ngx_cycle->log
97 * because ev->log may be already destoyed.
97 */ 98 */
98 99
99 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, ev->log, 0, 100 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, ngx_cycle->log, 0,
100 "kevent: stale event " PTR_FMT, ev); 101 "kevent: stale event " PTR_FMT, ev);
102
103 ngx_unlock(ev->lock);
101 104
102 ev = ev->next; 105 ev = ev->next;
103 106
104 continue; 107 continue;
105 } 108 }