Bug 12947 - Incorrect return value of FcAtomicLock
Summary: Incorrect return value of FcAtomicLock
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.4
Hardware: All All
: medium normal
Assignee: Keith Packard
QA Contact:
Depends on:
Reported: 2007-10-26 01:18 UTC by David
Modified: 2007-11-03 13:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description David 2007-10-26 01:18:16 UTC
The description of the function FcAtomicLock states: "Returns FcFalse if the file is locked by another process, else returns FcTrue and leaves the file locked.". So if we try to lock the file for the second time from the same process the function should return FcTrue.

However the implementation of the function FcAtomicLock returns FcFalse in this case.

The detailed bug description can be found at: 

Comment 1 Keith Packard 2007-11-03 13:06:35 UTC
The documentation is inaccurate; FcAtomicLock should only be invoked once by any process. I've changed it to read:

Attempts to lock the file referenced by <parameter>atomic</parameter>.
Returns FcFalse if the file is already locked, else returns FcTrue and
leaves the file locked.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.