X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sun, 12 Dec 2010 16:19:56 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.7.7: rm -rf sometimes fails - race condition?
Message-ID: <20101212151956.GC8795@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4D026815.4070606@gmx.de> <20101210182652.GA27615@ednor.casa.cgf.cx> <3D3D7FA2B44B477A8342F96F72AE1BE7@multiplay.co.uk> <20101212124248.GB11357@calimero.vinschen.de> <4D04D92F.6000002@gmx.de> <20101212151228.GA8795@calimero.vinschen.de> <4D04E6E8.6060905@gmx.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4D04E6E8.6060905@gmx.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Dec 12 16:14, Matthias Andree wrote:
> Am 12.12.2010 16:12, schrieb Corinna Vinschen:
> > On Dec 12 15:16, Matthias Andree wrote:
> >> Am 12.12.2010 13:42, schrieb Corinna Vinschen:
> >> 
> >> > So, what cygwin tries to do in the first place is to move files in use
> >> > into the recycle bin.  However, on Windows you need DELETE access rights
> >> > to be able to do so.  And, this doesn't work for remote drives.  On
> >> > remote drives we can only try to rename the file to some temporary
> >> > filename and hope for the best.  Afterwards Cygwin sets the delete
> >> > dispostion flag and returns success if setting the dispostion flag
> >> > succeeded.  After all, that's the maximum possible on Windows, and for
> >> > all we can tell the file has been deleted.  The fact that the directory
> >> > entry lingers until the last handle to the file has been closed is
> >> > something Cygwin has no control over.
> >> 
> >> Well, there's the problem.
> > 
> > No, it's not, at least not on local drives.  Read again.  Files and
> > directories in use are moved into the bin.  If that fails, unlink/rmdir
> > fails.
> 
> Then I wonder what makes my cygport (or the rm command it uses) fail as it
> removes the workdir...

I guess debugging would sched a light...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

