Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!gatech!itcatl!robin From: robin@itcatl.UUCP (Robin Cutshaw) Newsgroups: net.unix-wizards Subject: flock-fsync problems Message-ID: <103@itcatl.UUCP> Date: Thu, 23-Jan-86 11:42:53 EST Article-I.D.: itcatl.103 Posted: Thu Jan 23 11:42:53 1986 Date-Received: Fri, 24-Jan-86 09:22:33 EST Organization: Interactive Technology Corporation, Atlanta, Georgia Lines: 28 The problem: open-file loop flock file exclusive write special value to location unique to this process only fsync flock file unlock delay flock file exclusive read value from unique location flock file unlock endloop given several processes running the above algorithm and that no process writes over the unique location allocated to any other process, the value read is not always the value previously written (when it is wrong it is the value written on the pass previous to this one). The question: Does the flock-fsync mechanism work for multiple processes accessing the same file? Is their a better/easier/more reliable mechanism to do this? -robin (uucp: ..!gatech!itcatl!robin)