Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <4184B160.4050502@familiehaase.de>
Date: Sun, 31 Oct 2004 10:33:20 +0100
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Reini Urban <rurban@x-ray.at>
CC: Cygwin General Discussion <cygwin@cygwin.com>
Subject: Re: BUG: Cygwin implementation of Debian package tools
References: <418278CB.6080204@cox.net> <4182B53D.1030501@familiehaase.de> <41830281.6080605@cox.net> <4183C2EC.1090006@x-ray.at>
In-Reply-To: <4183C2EC.1090006@x-ray.at>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Reini Urban wrote:

>>> It happens i.e. often for me when using the generic-build-script, if 
>>> invoking with install or reconf which does rm -rf .build / .inst and
>>> having an explorer shell open in one of the (sub)directories to be
>>> removed from the script -> it seems to hang and it is always rm.

Using the above 'rm -rf .build / .inst' verbatim is not recommended;)
This was not correct, I meant:
rm -rf .build/*
or
rm -rf .inst/*

> $ time rm -r findutils-4.1.7-4
> rm: Entfernen von Verzeichnis "findutils-4.1.7-4/find" nicht m"oglich: 
> Device or resource busy
> 
> real    0m0.099s
> user    0m0.030s
> sys     0m0.031s
> 
> # high cpu for a short amount of time is not really annoying.

I'm getting these kind of 'build script hangs on trying to do rm -rf'
quite often, so it seems to be not that simple.  Another issue with this
is that you also cannot remove empty directories with explorer in these
cases, IIRC it is usually my editor (Windows Textpad) which I used to
open a file in some subdirectory and has the working path set to this
directory, it also happens often that even after closing the editor
doesn't free this handle so it is still not possible to remove the
directory with rm or explorer, probably a bug in my favorite editor.

Gerrit
-- 
=^..^=

--
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/

