Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 12:12:20 +0100
From:      Bob Bishop <rb@gid.co.uk>
To:        Graham Wheeler <gram@cdsec.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: File locking problem
Message-ID:  <3.0.6.32.19990421121220.007a9100@gid.co.uk>
In-Reply-To: <371D97C4.B7EFA0B1@cdsec.com>
References:  <199904201821.OAA16150@lor.watermarkgroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

At 11:17 21/04/99 +0200, Graham Wheeler wrote:
>[...]
>So it seems that although my assorted processes are doing
>things in the order:
>
>    ...
>    child:unlink()
>    child:close()   // and unlock
>    parent:open()   // and lock - should not succeed due to unlink
>    parent:fgets()  // should never occur as open() should fail
>    ...
>
>there is some kind of race happening between the file being removed
>by the unlink and the parent:open()

More than likely. unlink() has never claimed to be synchronous AFAIK.

--
Bob Bishop		    +44 118 977 4017
rb@gid.co.uk		fax +44 118 989 4254 (0800-1800 UK)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.19990421121220.007a9100>