3 ms·
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.
by tedunangst 3y ago
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.
- js2 3y agoIndeed: https://github.com/jaysoffian/dotlock/ 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...