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))
<HR>
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
<P>
1. There is no money collected for the text(s) of the articles.
<BR>
2. The following notice remains appended to each copy:
<P>
<EM>The Usenet Oldnews Archive: Compilation Copyright© 1981, 1996
<BR> Bruce Jones, Henry Spencer, David Wiseman.</EM>
<P>
<HR>
<BR>Return to <A HREF="FA.unix-wizards-index.html">FA.unix-wizards index</A>
<BR>Return to the
<A HREF="../index.html">Usenet Oldnews Archive index</A>
</HTML>
-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org>
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.