httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Korb <bk...@veritas.com>
Subject Re: apr mmap/ & shm/ problem.
Date Wed, 29 Jun 2005 22:42:35 GMT
Michael Vergoz wrote:
 > Bruce,
 >
 > <snip>
 >         ret = size; // ret = 0x2001
 >         if((ret%_apr_mem_page_size) != 0) { // 0x0001
 >                 ret -= (ret%_apr_mem_page_size); // ret -= 0x0001 = 0x2000
 >                 ret += _apr_mem_page_size*map->pager; // ret += 0x1000*PAGER
 >         }
 > 	// ret = 0x3000 :P
 > </snip>
 >
 > When you try to sync a file into memory (file to memory) apr_mem_map() will
 > also do a "pager" auto update...

Hi Mike,

You cannot extend mmapped files.  The trailing page is just there to avoid
a seg fault.  :) - Bruce

Mime
View raw message