Hacker News new | past | comments | ask | show | jobs | submit login

The way to deal with link() on NFS is to stat() the old file after and see if it has two links. That's how you know you won.



Indeed:

https://github.com/jaysoffian/dotlock/

I think I first learned that trick from procmail and then confirmed it with the NFS spec? Been a long time...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: