summaryrefslogtreecommitdiffstats
path: root/modules/cache/mod_file_cache.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-12-07 06:01:01 +0100
committerRyan Bloom <rbb@apache.org>2000-12-07 06:01:01 +0100
commit1e453f236955f415e0e54822a66a3923d0a02eed (patch)
tree146ddd606c44af26936f2f776ad41804b023ac0b /modules/cache/mod_file_cache.c
parentChange some spaces to tabs. (diff)
downloadapache2-1e453f236955f415e0e54822a66a3923d0a02eed.tar.xz
apache2-1e453f236955f415e0e54822a66a3923d0a02eed.zip
Port httpd to the newest MMAP api.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87243 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/cache/mod_file_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c
index d2c0ee92d3..11b7c3dc1a 100644
--- a/modules/cache/mod_file_cache.c
+++ b/modules/cache/mod_file_cache.c
@@ -296,7 +296,7 @@ static const char *mmapfile(cmd_parms *cmd, void *dummy, const char *filename)
filename);
return NULL;
}
- if ((rc = apr_mmap_create(&tmp.mm, fd, 0, tmp.finfo.size, cmd->pool)) != APR_SUCCESS) {
+ if ((rc = apr_mmap_create(&tmp.mm, fd, 0, tmp.finfo.size, APR_MMAP_READ, cmd->pool)) != APR_SUCCESS) {
apr_close(fd);
ap_log_error(APLOG_MARK, APLOG_WARNING, rc, cmd->server,
"mod_file_cache: unable to mmap %s, skipping", filename);