comparison src/core/ngx_cycle.c @ 470:6866b490272e NGINX_0_7_47

nginx 0.7.47 *) Bugfix: nginx could not be built on FreeBSD 6 and early versions; the bug had appeared in 0.7.46. *) Bugfix: nginx could not be built on MacOSX; the bug had appeared in 0.7.46. *) Bugfix: if the "max_size" parameter was set, then the cache manager might purge a whole cache; the bug had appeared in 0.7.46. *) Change: a segmentation fault might occur in worker process, if the "proxy_cache"/"fastcgi_cache" and the "proxy_cache_valid"/ "fastcgi_cache_valid" were set on different levels; the bug had appeared in 0.7.46. *) Bugfix: a segmentation fault might occur in worker process, if a request was redirected to a proxied or FastCGI server via error_page or try_files; the bug had appeared in 0.7.44.
author Igor Sysoev <http://sysoev.ru>
date Wed, 01 Apr 2009 00:00:00 +0400
parents a8424ffa495c
children f2c6a7373274
comparison
equal deleted inserted replaced
469:3174b44e74fc 470:6866b490272e
357 357
358 if (file[i].name.data == NULL) { 358 if (file[i].name.data == NULL) {
359 continue; 359 continue;
360 } 360 }
361 361
362 file[i].fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR, 362 file[i].fd = ngx_open_file(file[i].name.data,
363 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND, 363 NGX_FILE_APPEND,
364 NGX_FILE_CREATE_OR_OPEN,
364 NGX_FILE_DEFAULT_ACCESS); 365 NGX_FILE_DEFAULT_ACCESS);
365 366
366 ngx_log_debug3(NGX_LOG_DEBUG_CORE, log, 0, 367 ngx_log_debug3(NGX_LOG_DEBUG_CORE, log, 0,
367 "log: %p %d \"%s\"", 368 "log: %p %d \"%s\"",
368 &file[i], file[i].fd, file[i].name.data); 369 &file[i], file[i].fd, file[i].name.data);
1062 } 1063 }
1063 1064
1064 file[i].pos = file[i].buffer; 1065 file[i].pos = file[i].buffer;
1065 } 1066 }
1066 1067
1067 fd = ngx_open_file(file[i].name.data, NGX_FILE_RDWR, 1068 fd = ngx_open_file(file[i].name.data, NGX_FILE_APPEND,
1068 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_APPEND, 1069 NGX_FILE_CREATE_OR_OPEN, NGX_FILE_DEFAULT_ACCESS);
1069 NGX_FILE_DEFAULT_ACCESS);
1070 1070
1071 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 1071 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
1072 "reopen file \"%s\", old:%d new:%d", 1072 "reopen file \"%s\", old:%d new:%d",
1073 file[i].name.data, file[i].fd, fd); 1073 file[i].name.data, file[i].fd, fd);
1074 1074