From owner-freebsd-hackers Wed Apr 21 6:14:45 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from titan.metropolitan.at (mail.metropolitan.at [195.212.98.131]) by hub.freebsd.org (Postfix) with ESMTP id CE5C31534B for ; Wed, 21 Apr 1999 06:14:34 -0700 (PDT) (envelope-from mladavac@metropolitan.at) Received: by TITAN with Internet Mail Service (5.0.1458.49) id <26KYDBA4>; Wed, 21 Apr 1999 15:14:40 +0200 Message-ID: <55586E7391ACD211B9730000C11002761795EF@r-lmh-wi-100.corpnet.at> From: Ladavac Marino To: 'Graham Wheeler' , hackers@freebsd.org Subject: RE: File locking problem Date: Wed, 21 Apr 1999 15:10:38 +0200 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > -----Original Message----- > From: Graham Wheeler [SMTP:gram@cdsec.com] > Sent: Wednesday, April 21, 1999 2:57 PM > To: hackers@freebsd.org > Subject: Re: File locking problem > > Graham Wheeler wrote: > [ML] Please disregard my second "solution". It won't work (the second open will create the file if you specify O_CREAT). Talking about that, the real solution might be to open the file read-write without O_CREAT flag--the open will fail if the file was unlinked between dir read and open. /Marino To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message