This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: make keeps an open handle to a file, can't delete parent directory
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com
- Date: Thu, 25 Jan 2007 09:30:32 +0100 (CET)
- Subject: Re: make keeps an open handle to a file, can't delete parent directory
--- Alexander Sotirov <asotirov@determina.com> 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/