$ luarocks install luaflock
luaposix and lunix only provide wrappers for the POSIX-standard fcntl(2)-based
locking. On Linux, this does not interoperate with flock(2)-based locking,
which means that Lua code cannot interoperate with software that uses it,
including shell scripts using the flock(1) utility. This package provides a
wrapper around the flock(2) system call, closing the gap.
This package will only function on systems with fileno(3) and flock(2).
Versions
Dependencies
lua >= 5.1