Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
0xbadcafebee
20 days ago
|
parent
|
context
|
favorite
| on:
Things Unix can do atomically (2010)
You can use `ln` atomicity for a simple, portable(ish) locking system:
https://gist.github.com/pwillis-els/b01b22f1b967a228c31db3cf...
akoboldfrying
20 days ago
|
next
[–]
Really nice explanation of a useful pattern. I was surprised to discover that even the famously broken NFS honours atomicity of hardlink creation.
michaelcampbell
16 days ago
|
prev
[–]
I use `mkdir` for a locking mechanism quite frequently. It also provides me an area to put stuff during the script runs.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: