delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 25 Jan 2007 10:25:44 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: make keeps an open handle to a file, can't delete parent directory |
Message-ID: | <20070125092544.GT27843@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <45B7CCCF DOT 3030204 AT determina DOT com> <45B7F55F DOT 6010201 AT cygwin DOT com> <45B80BF5 DOT 2020804 AT determina DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <45B80BF5.2020804@determina.com> |
User-Agent: | Mutt/1.4.2.2i |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
On Jan 24 17:46, Alexander Sotirov wrote: > Larry Hall (Cygwin) wrote: > > That's a Windowsism. You should see better results with a recent snapshot: > > > > <http://cygwin.com/snapshots/> > > > > It would be great if you tested your case with a snapshot and report back > > your findings. > [...] > It looks like the bug is a result of a change that happened between the 1.5.19-4 > release from Jan 20 and the snapshot from Mar 22. It's not exactly a bug. The reason for this is a change in the opendir/readdir/closedir implementation. The old implementation used Win32 functions in a way which opened a handle to the directory only when the first readdir has been called. The new implementation opens the handle already on opendir. Make calls opendir on the foo/bar directory as a result of the implicit rule, but not readdir, so there was no open handle in the old implementation, but there is an open handle now. I have a new implementation of unlinking files which should help here, too. I'll look into using this method for rmdir as well. However, this will not be available in the upcoming 1.5.24 release. Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |