[Fontconfig-bugs] [Bug 99360] Cache file update fails on Windows (also Cygwin)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 13 08:12:23 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=99360

--- Comment #7 from Akira TAGOH <akira at tagoh.org> ---
Speaking of the necessity of locking cache files on *nix, the caches can be
updated from the multiple processes at the same time and they might have
different state of caches depending on scanning font directories. thus, trying
to lock before scanning and unlock after writing down a cache. why we take a
fd, is that because the syscall of F_SETLKW requires it.

I guess the issue around the file lock may be less likely to happen on Win32
because the caches may be not updated from multiple processes at the same time.
though if you have any better idea to improve this, feel free to submit changes
for that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180313/58903019/attachment.html>


More information about the Fontconfig-bugs mailing list