On Sat, 18 May 2002, Paul Herman wrote:

> Well, unlink and remove are the same in my vocabulary.  The file is
> removed when you unlink it, but the will lock remain until you
> close it.

Well, unlink and remove are apparently not the same in the man page for
unlink(2), as excepted here:

     If one or more process have the file open when the last link is
     removed, the link is removed, but the removal of the file is delayed
     until all references to it have been closed.

But as you mentioned in your private email, using the lock at all is
probably overkill, and it would probably suffice to just test for file
existence and put a delayed loop around open().  Unfortunately I've been
terribly busy and I haven't had a chance to test that out yet.

Geoff


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to