[Fontconfig-bugs] [Bug 64766] Make fontconfig scanning faster
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri May 16 14:54:31 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=64766
--- Comment #28 from Behdad Esfahbod <freedesktop at behdad.org> ---
(In reply to comment #27)
> May I ask why there's a 2 seconds wait?
>From fc-cache.c:
/*
* Now we need to sleep a second (or two, to be extra sure), to make
* sure that timestamps for changes after this run of fc-cache are later
* then any timestamps we wrote. We don't use gettimeofday() because
* sleep(3) can't be interrupted by a signal here -- this isn't in the
* library, and there aren't any signals flying around here.
*/
/* the resolution of mtime on FAT is 2 seconds */
if (changed)
sleep (2);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20140516/5c9ec8c1/attachment.html>
More information about the Fontconfig-bugs
mailing list