]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/cache: switch .cachelock to fcntl()
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 4 Sep 2020 18:54:52 +0000 (20:54 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 7 Sep 2020 15:47:47 +0000 (17:47 +0200)
commitb65e8977566be831c0308390b70fc2151f40e4e7
treeee2cf61959c70bbcd6dfe87fc194cf31c8e8f8de
parente8ca6a70caac7fb5cd3a4f69478880e84d6a5c11
lib/cache: switch .cachelock to fcntl()

This gives us correctness, especially on "staleness" detection.
For simplicity we now don't remove "stale" .cachelock on opening cache,
but it doesn't obstruct us in any way (and overflow will remove it).
lib/cache/cdb_lmdb.c