Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Michael Livingston <mlivings@bcpl.net>
Subject: Creating a lock file in C
Date: 1999/05/05	[thread overview]
Message-ID: <Pine.GSO.4.10.9905052145100.27623-100000@mail.bcpl.net> (raw)

I'm creating a lock file in C on Digital UNIX 4.0D.  I got the statement
"open ( filename, O_WRONLY | O_CREAT | O_EXCL, 0644)" from a book on UNIX
programming.  The book said that UNIX documentation implies that this will
work, but does not explicitly state that it well.  Does anybody know if
this will always allow only one process at a time to successfully create
the lock file?  We have a multi-CPU system if that has an impact.





             reply	other threads:[~1999-05-05  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-05  4:00 Michael Livingston [this message]
1999-05-06  4:00 ` Creating a lock file in C Timo Felbinger
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox