Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.programmer Subject: Re: Determining if an existant file is open Message-ID: <4454@auspex.auspex.com> Date: 19 Nov 90 19:53:44 GMT References: <1990Nov16.023110.1305@csun.edu> <1990Nov16.200945.14468@nusdecs.uucp> Organization: Auspex Systems, Santa Clara Lines: 5 >Use the exclusive flag when calling open(2) -- must be done every time. You mean O_EXCL? That flag isn't an exclusive-use open flag; it's an "exclusive create" flag. It only causes an error if O_CREAT is also set and the file already exists.