fcatomic: fallback to create a directory with FcAtomicLock
authorAkira TAGOH <akira@tagoh.org>
Mon, 28 May 2012 06:58:56 +0000 (15:58 +0900)
committerAkira TAGOH <akira@tagoh.org>
Mon, 28 May 2012 06:59:33 +0000 (15:59 +0900)
commit26160366d7ba5c7baf20ae091d5dd0388714df83
tree37c9c4e8384e73d3d2740eae02a5fa746ff3d1cd
parent2837c63876b9b1f27d74aad51d45fc18d48f4652
fcatomic: fallback to create a directory with FcAtomicLock

link(2) might be failed on the filesystem that doesn't support
the hard link. e.g. FcAtomicLock() always fails on FAT filesystem
when link(2) is available.
So that may be a good idea to fallback if link(2) is failed.
src/fcatomic.c