comparison src/event/ngx_event.c @ 218:05592fd7a436

nginx-0.0.1-2004-01-05-23:55:48 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 05 Jan 2004 20:55:48 +0000
parents f1d0e5f09c1e
children 2ba3477070ac
comparison
equal deleted inserted replaced
217:c5d1cdcb04ec 218:05592fd7a436
220 * delete the old accept events that were bound to 220 * delete the old accept events that were bound to
221 * the old cycle read events array 221 * the old cycle read events array
222 */ 222 */
223 223
224 if (ngx_del_event(&cycle->old_cycle->read_events[fd], 224 if (ngx_del_event(&cycle->old_cycle->read_events[fd],
225 NGX_READ_EVENT, 0) == NGX_ERROR) { 225 NGX_READ_EVENT, NGX_CLOSE_EVENT) == NGX_ERROR)
226 {
226 return NGX_ERROR; 227 return NGX_ERROR;
227 } 228 }
228 229
229 cycle->old_cycle->connections[fd].fd = -1; 230 cycle->old_cycle->connections[fd].fd = -1;
230 } 231 }