logoalt Hacker News

0xbadcafebeetoday at 5:52 AM1 replyview on HN

You can use `ln` atomicity for a simple, portable(ish) locking system: https://gist.github.com/pwillis-els/b01b22f1b967a228c31db3cf...


Replies

akoboldfryingtoday at 9:33 AM

Really nice explanation of a useful pattern. I was surprised to discover that even the famously broken NFS honours atomicity of hardlink creation.