delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/19/16:20:56

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: mwoehlke <mwoehlke AT tibco DOT com>
Subject: Re: Unable to delete directory in Cygwin
Date: Mon, 19 Jun 2006 15:20:22 -0500
Lines: 31
Message-ID: <e770u6$n5f$1@sea.gmane.org>
References: <1F211FE03383644EAA6BB7A52FCD9B9B0927A4 AT sohm DOT kpit DOT com> <4491562C DOT 4020702 AT byu DOT net> <e76efg$cr3$1 AT sea DOT gmane DOT org> <4496F86C DOT 9050707 AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.4 (X11/20060516)
In-Reply-To: <4496F86C.9050707@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Larry Hall (Cygwin) wrote:
> mwoehlke wrote:
>> Eric Blake wrote:
>>> That said, cygwin does try to emulate linux, and if someone were to
>>> contribute a patch that would allow cygwin to emulate directory deletion
>>> if it knows that all open handles have also been scheduled for unlinking
>>> at process end, then http://cygwin.com/acronyms/#PTC.
>>
>> Not a patch, but for the record, it looks like Interix solves this 
>> problem (http://www.interopsystems.com/tools/tm.aspx?m=9403). Maybe 
>> Cygwin could do something similar?
>>
>> (And in case that link dies; apparently Interix has a special 'temp' 
>> directory where "unlinked" files are sent until their handles are all 
>> closed.)
> 
> If you take a look at the cygwin sources, you'll see that Cygwin does
> something similar already.  This does not solve the problem for those
> that want to unlink and immediately recreate the unlinked entry though...

I'm confused. As I read the post, if I create a file 'bar' in '/foo', 
open the file, and then 'rm -rf /foo', I can't do that. If Cygwin 
"magically redirects" 'bar' to some special place, wouldn't that
a: allow me to unlink '/foo'
b: allow me to then create a new (and different) '/foo/bar'?

I also do not see anywhere that the OP is even trying to do [b].

-- 
Matthew
...Ruthlessly beating Windows with a hammer until it looks like POSIX.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019