Mercurial > hg > nginx
comparison src/event/modules/ngx_rtsig_module.c @ 375:744ccb59062d
nginx-0.0.7-2004-07-02-19:54:34 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 02 Jul 2004 15:54:34 +0000 |
parents | eaf1f651cf86 |
children | 5ce6561246a5 |
comparison
equal
deleted
inserted
replaced
374:213f17e9f776 | 375:744ccb59062d |
---|---|
247 } | 247 } |
248 | 248 |
249 if (flags & NGX_CLOSE_EVENT) { | 249 if (flags & NGX_CLOSE_EVENT) { |
250 c->read->active = 0; | 250 c->read->active = 0; |
251 c->write->active = 0; | 251 c->write->active = 0; |
252 c->read->posted = 0; | |
253 c->write->posted = 0; | |
254 return NGX_OK; | 252 return NGX_OK; |
255 } | 253 } |
256 | 254 |
257 if (fcntl(c->fd, F_SETFL, O_RDWR|O_NONBLOCK) == -1) { | 255 if (fcntl(c->fd, F_SETFL, O_RDWR|O_NONBLOCK) == -1) { |
258 ngx_log_error(NGX_LOG_ALERT, c->log, ngx_errno, | 256 ngx_log_error(NGX_LOG_ALERT, c->log, ngx_errno, |
260 return NGX_ERROR; | 258 return NGX_ERROR; |
261 } | 259 } |
262 | 260 |
263 c->read->active = 0; | 261 c->read->active = 0; |
264 c->write->active = 0; | 262 c->write->active = 0; |
265 c->read->posted = 0; | |
266 c->write->posted = 0; | |
267 | 263 |
268 return NGX_OK; | 264 return NGX_OK; |
269 } | 265 } |
270 | 266 |
271 | 267 |