Mercurial > hg > nginx-vendor-current
comparison src/core/ngx_palloc.c @ 278:704622b2528a NGINX_0_5_9
nginx 0.5.9
*) Change: now the ngx_http_memcached_module uses the $memcached_key
variable value as a key.
*) Feature: the $memcached_key variable.
*) Feature: the "clean" parameter in the "client_body_in_file_only"
directive.
*) Feature: the "env" directive.
*) Feature: the "sendfile" directive is available inside the "if" block.
*) Feature: now on failure of the writing to access nginx logs a
message to error_log, but not more often than once a minute.
*) Bugfix: the "access_log off" directive did not always turn off the
logging.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 25 Jan 2007 00:00:00 +0300 |
parents | 6eb1e38f0f1f |
children | 9b7db0df50f0 |
comparison
equal
deleted
inserted
replaced
277:b3aec7787b8e | 278:704622b2528a |
---|---|
241 ngx_close_file_n " \"%s\" failed", c->name); | 241 ngx_close_file_n " \"%s\" failed", c->name); |
242 } | 242 } |
243 } | 243 } |
244 | 244 |
245 | 245 |
246 void | |
247 ngx_pool_delete_file(void *data) | |
248 { | |
249 ngx_pool_cleanup_file_t *c = data; | |
250 | |
251 ngx_err_t err; | |
252 | |
253 ngx_log_debug3(NGX_LOG_DEBUG_ALLOC, c->log, 0, "run cleanup: %p, fd:%d %s", | |
254 c, c->fd, c->name); | |
255 | |
256 if (ngx_delete_file(c->name) == NGX_FILE_ERROR) { | |
257 err = ngx_errno; | |
258 | |
259 if (err != NGX_ENOENT) { | |
260 ngx_log_error(NGX_LOG_CRIT, c->log, err, | |
261 ngx_delete_file_n " \"%s\" failed", c->name); | |
262 } | |
263 } | |
264 | |
265 if (ngx_close_file(c->fd) == NGX_FILE_ERROR) { | |
266 ngx_log_error(NGX_LOG_ALERT, c->log, ngx_errno, | |
267 ngx_close_file_n " \"%s\" failed", c->name); | |
268 } | |
269 } | |
270 | |
271 | |
246 #if 0 | 272 #if 0 |
247 | 273 |
248 static void * | 274 static void * |
249 ngx_get_cached_block(size_t size) | 275 ngx_get_cached_block(size_t size) |
250 { | 276 { |