🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: dc.test
Article #6465

Is Sun's flock() broken?

#6465
From: Andrew Arensburger - RMS
Date: Mon, 11 May 1992 23:03
10 lines
1019 bytes
	I've got the following problem on a Sun Sparcstation 300 running
SunOS 4.1.2:

	Several concurrent, cooperating processes are modifying a file.
Occasionally, this file gets trashed, and it looks like a flock() problem:
according to my syslog output, occasionally two processes get an exclusive
lock on the same file.
	I think I'm using flock() correctly. What I'm more interested in
is knowing whether anyone has noticed any similar problems.
Technical Details
Message-ID: <1992May11.230344.9853@kong.gsfc.nasa.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!mimsy!kong!arensb

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10da22,7c9eea1f3b3aaf8e,start
X-Google-Attributes: gid10da22,public
X-Google-ArrivalTime: 1992-05-11 00:14:00 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!mimsy!kong!arensb
From: arensb@kong.gsfc.nasa.gov (Andrew Arensburger - RMS)
Newsgroups: dc.test
Subject: Is Sun's flock() broken?
Message-ID: <1992May11.230344.9853@kong.gsfc.nasa.gov>
Date: 11 May 92 23:03:44 GMT
Sender: arensb@kong.gsfc.nasa.gov (Andrew Arensburger - RMS)
Distribution: na
Organization: Goddard Space Flight Center
Lines: 11