Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2002 22:19:33 -0400 (EDT)
From:      "Geoffrey C. Speicher" <geoff@sea-incorporated.com>
To:        Paul Herman <pherman@frenchfries.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: bug in pw, -STABLE [patch]
Message-ID:  <Pine.BSF.4.10.10205222207420.84448-100000@sea-incorporated.com>
In-Reply-To: <20020518110125.Q410-100000@mammoth.eat.frenchfries.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 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?Pine.BSF.4.10.10205222207420.84448-100000>