]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libuuid: fix locking of clock state counter file
authorPetr Uzel <petr.uzel@suse.cz>
Mon, 7 Feb 2011 13:18:28 +0000 (14:18 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Feb 2011 15:27:17 +0000 (16:27 +0100)
commitc190c6c2e987816ca0f273e2de528701d10cbbc1
tree5e98efdd3c57f8ffffea078417955d0e5c4db0ee
parentf2f0dcaf11319a9991c2135dcf525cd649a97b22
libuuid: fix locking of clock state counter file

fcntl(2) does not work for synchronization of threads belonging
to the same process. Use flock(2) instead.

http://marc.info/?l=util-linux-ng&m=129708412829971&w=2

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
shlibs/uuid/src/gen_uuid.c