logoalt Hacker News

Igromtoday at 9:44 AM1 replyview on HN

>fcntl(fd, F_GETLK, &lock), fcntl(fd, F_SETLK, &lock), and fcntl(fd, F_SETLKW, &lock)

There's also `flock`, the CLI utility in util-linux, that allows using flocks in shell scripts.


Replies

cachiustoday at 9:49 AM

What are flocks in this context? Surely not a number of sheep...

show 1 reply