[Fontconfig] mmap-ed caches + patch

Patrick Lam plam at MIT.EDU
Wed Sep 28 10:24:30 EST 2005


Lubos Lunak wrote:
>  Any cache file I'd say (and yes, I ran fc-cache as root). AFAIK if you 
> truncate a file that's mmap-ed, any access to the no longer existing part of 
> the file results in bad things. I don't know the structure of the cache file, 
> it seems to me it can be built in several steps for different architectures, 
> but I'd expect that the code can't cope with the data simply changing under 
> its hands, and unless the format specifically prevents that I'd expect that 
> to happen. Would there be any problem if you simply unlinked the old file 
> before writing the new one?

I now use FcAtomic to write to these cache files.  Try the latest CVS
version.

pat



More information about the Fontconfig mailing list