summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorIan Holsman <ianh@apache.org>2002-02-05 04:32:52 +0000
committerIan Holsman <ianh@apache.org>2002-02-05 04:32:52 +0000
commit249d026645a9452ef80be94eccf93adf2329921e (patch)
tree23aa24850b5493cfc27e7cf04b646d4fd29ac5df /shmem
parent8add8f47617f5f3f40b3932857bb022a6eb04b4a (diff)
downloadapr-249d026645a9452ef80be94eccf93adf2329921e.tar.gz
not allocating memory for the metadata..
Thanks Jin. Submitted by: Jin Hong <jinh@cnet.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62912 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r--shmem/unix/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shmem/unix/shm.c b/shmem/unix/shm.c
index 284622f27..54310a8b7 100644
--- a/shmem/unix/shm.c
+++ b/shmem/unix/shm.c
@@ -197,7 +197,7 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m,
return APR_SUCCESS;
#elif APR_USE_SHMEM_MMAP_ANON
- new_m->base = mmap(NULL, reqsize, PROT_READ|PROT_WRITE,
+ new_m->base = mmap(NULL, new_m->realsize, PROT_READ|PROT_WRITE,
MAP_ANON|MAP_SHARED, -1, 0);
if (new_m->base == MAP_FAILED) {
return errno;