:One thing I used to do (before hearing I shouldn't) is:
:
:       if( symlink(pid,"file.lock")){
:               # I have a lock, readlink() gives others the PID.
:       }
:
:Are symlinks atomic across NFS?

    Yes, symlinks and open() with O_CREAT|O_EXCL are atomic across NFS.

                                                -Matt
 

Reply via email to