home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!klaava!hurtta
- From: hurtta@cs.Helsinki.FI (Kari E. Hurtta)
- Newsgroups: comp.unix.wizards
- Subject: Re: flock() network behaviour
- Message-ID: <HURTTA.92Aug20165725@plootu.Helsinki.FI>
- Date: 20 Aug 92 14:57:25 GMT
- References: <1992Aug20.114112.12756@fwi.uva.nl>
- Sender: news@klaava.Helsinki.FI (Uutis Ankka)
- Organization: Department of Computer Science, University of Helsinki, Finland
- Lines: 27
- In-Reply-To: stolk@fwi.uva.nl's message of 20 Aug 92 11: 41:12 GMT
-
- In article <1992Aug20.114112.12756@fwi.uva.nl> stolk@fwi.uva.nl (Bram) wrote:
- > I am using flock() to prevent simultanous fileupdate by several
- > processes.
- >
- > However, these processes run on different machines, which do
- > share a common filesystem though....
- >
- > Will the fact that the processes run on different machines mess
- > up the behaviour of flock?
-
- At least in SunOS flock don't work between in machines (as man page states):
-
- BUGS
- Locks obtained through the flock() mechanism are known only
- within the system on which they were placed. Thus, multiple
- clients may successfully acquire exclusive locks on the same
- remote file. If this behavior is not explicitly desired,
- the fcntl(2V) or lockf(3) system calls should be used
- instead; these make use of the services of the network lock
- manager (see lockd(8C)).
-
- - K E H
- ( Kari.Hurtta@Helsinki.FI,
- hurtta@cc.Helsinki.FI,
- hurtta@cs.Helsinki.FI,
- HURTTA@FINUH.BITNET
- )
-