home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!stolk
- From: stolk@fwi.uva.nl (Bram)
- Subject: flock() network behaviour
- Message-ID: <1992Aug20.114112.12756@fwi.uva.nl>
- Sender: news@fwi.uva.nl
- Nntp-Posting-Host: ollie.fwi.uva.nl
- Organization: FWI, University of Amsterdam
- Date: Thu, 20 Aug 1992 11:41:12 GMT
- Lines: 27
-
- Hi,
-
-
- 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?
-
- I am asking this, because my code seems to screw up every
- now and then. Inconsistancies occur.
- Is flock 100% safe, or is the test+lock non-atomic, so that
- very high frequency locking will mess up if prolongued long
- enough?
-
- Any UNIX Guru on the net who can help me out here?
-
- Thanks in advance,
-
-
- Bram Stolk
- (stolk@fwi.uva.nl)
-
-
-