Acornell.109 fa.unix-wizards utzoo!decvax!ucbvax!mhtsa!ihnss!vax135!cornell!pavel Fri Oct 2 12:06:47 1981 Lockfiles Maybe I'm missing something obvious, but what's wrong with the following locking mechanism? It's the one I've always used and never (to my knowledge) had any races: while((lfd = creat(LOCKFILE, 0))
This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright© 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.



Return to FA.unix-wizards index
Return to the Usenet Oldnews Archive index ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.