Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Is mkdir always atomic? I seem to recall buggy NFS implementations where it isn't, but then Solaris NFS is less buggy than most. Commented May 11, 2011 at 20:45
  • @Gilles: I don't know - I always create lock files in /tmp. Commented May 11, 2011 at 20:47
  • @Gilles, mkdir is meant to be atomic over NFS and is actually why it's recommended over a open/creat with O_EXCL. Now it is very well possible that there exist buggy implementations. Having said that, of all places, /tmp is the least likely to be over NFS Commented Jan 18, 2013 at 15:30
  • @StephaneChazelas Buggy NFS implementations aren't that rare: mail-archive.com/[email protected]/msg20456.html perlmonks.org/?node_id=983724 news.ycombinator.com/item?id=1037310 Commented Jan 18, 2013 at 21:51