OSDN Git Service

libuuid: use fcntl locking instead of lockf
authorTheodore Ts'o <tytso@mit.edu>
Fri, 15 Feb 2008 22:41:38 +0000 (17:41 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 16 Feb 2008 15:05:48 +0000 (10:05 -0500)
commite70f32b79d29e287f8347c5d41c6716f094cc654
tree0a4af0f1b82efe794d9fde7c49817e2d9be8d6a5
parent67ab6bc86b19912d970c6b45e63b7bc93ca38494
libuuid: use fcntl locking instead of lockf

Cygwin doesn't support lockf(), so move to fcntl() locking as more
portable.  Also fix a bug which could cause get_lock() to loop forever
if the attempt to lock the file fails for some reason.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/uuid/gen_uuid.c