Xref: utzoo comp.unix.questions:15205 comp.sys.mips:42 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!ukma!david From: david@ms.uky.edu (David Herron -- One of the vertebrae) Newsgroups: comp.unix.questions,comp.sys.mips Subject: Re: Should two exclusive flock(2)'s by same process succeed? Message-ID: <12287@s.ms.uky.edu> Date: 26 Jul 89 19:23:25 GMT References: <136@uakari.primate.wisc.edu> Reply-To: david@ms.uky.edu (David Herron -- One of the vertebrae) Organization: U of Kentucky, Mathematical Sciences Lines: 16 In article <136@uakari.primate.wisc.edu> bin@primate.wisc.edu (Brain in Neutral) writes: >In other words, the process acquires two exclusive locks. Am I correct >in thinking this is a bug in flock? The Ultrix v3 man page tells me that flock() is for cooperating processes. Processes should be able to cooperate with themselves ... On Ultrix v3 the second flock fails returning EWOULDBLOCK I `feel' that the second lock should succeed ... but haven't read any of the Official Standards Work so don't know the basis. -- <- David Herron; an MMDF guy <- ska: David le casse\*' {rutgers,uunet}!ukma!david, david@UKMA.BITNET <- "Amiga software is as good and as bad as PC software. The difference is <- that AmigaDOS waves bye-bye before it dies, while the PC just freezes."