X-Spam-Check-By: sourceware.org X-YMail-OSG: x9iR1OEVM1mvP.AY1v2Iq_FPwHMSRYHoBbBOzdSXSlxFeVpaMoqUt2vokhYEUURcctslHN4MYsZzzaSXPjSAe3d63KJMN9xMeuvVApEddpSlEz_kuLtP2cCBP0sgRCG.u7L5kdVnCItc Date: Thu, 25 Jan 2007 09:30:32 +0100 (CET) From: Marco Atzeri Subject: Re: make keeps an open handle to a file, can't delete parent directory To: cygwin AT cygwin DOT com In-Reply-To: <45B7CCCF.3030204@determina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-ID: <42715.80136.qm@web25001.mail.ukl.yahoo.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --- Alexander Sotirov ha scritto: > Hi, > > I am having a problem with GNU make 3.81 on cygwin > 1.5.22. It looks like a > problem with cygwin and not make, but I am not sure > exactly what's causing it. confirmed also with 20070118 shapshot and 3.81-1 > The part of the makefile that causes this error is > the implicit rule on the > bottom of the file. This rule specifies an implicit > rule for files inside the > foo/bar/ directory. If the rule is present, make > keeps an open handle to the > foo/bar/ directory, which prevents it from being > deleted. If the rule is > commented out, everything works fine. > > If we replace the 'rm -rf' command with 'sleep' and > running Process Explorer, it > shows the open handle in make. I've attached a > screenshot of that. > > Alex > > create: > mkdir foo > mkdir foo/bar > > clear: > -rm -rf foo > ls -la foo > > foo/bar/%.obj: foo/bar/%.c > echo implicit rule > > it seems an issue of make as rm -rf foo gave no problem on command line Regards Marco ___________________________________ Vinci i biglietti per FIFA World Cup in Germania! yahoo.it/concorso_messenger -- 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/