Improve pid locking code to work on filesystems that don't support hard links.
authorJoey Hess <joeyh@joeyh.name>
Fri, 10 Feb 2017 19:21:58 +0000 (15:21 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 10 Feb 2017 19:22:28 +0000 (15:22 -0400)
commit5e6ced7d0f364cdcc99bde821f84361f51aa4ed5
tree1402c301e6a969f00db63fd8e047f19f196db8e8
parent913b3b51e3fb71be2e3186afeacb6c2567e4b225
Improve pid locking code to work on filesystems that don't support hard links.

Probing for hard link support in the pid locking code is redundant since
git-annex init already probes that. But, it didn't seem worth threading
that data through; the pid locking code runs at most once per git-annex
process, and only on unusual filesystems. Optimising a single hard link
and unlink isn't worth it.

This commit was sponsored by Francois Marier on Patreon.
CHANGELOG
Utility/LockFile/PidLock.hs
doc/forum/git_annex_init_timeout/comment_2_bf15b686b07c5e6e95796affa497a541._comment [new file with mode: 0644]