mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
Owner files are opened with O_NOFOLLOW and O_NONBLOCK, and the opened handle must be a regular file with one name. An entry replaced by a link or a FIFO after a check can no longer block holders() or the wait in acquire(). Lock files are opened with O_NONBLOCK: holders() treats a FIFO lock file as a free slot, and try_acquire() returns a lock error for it.