delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/31/04:33:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <4184B160.4050502@familiehaase.de>
Date: Sun, 31 Oct 2004 10:33:20 +0100
From: "Gerrit P. Haase" <gp AT familiehaase DOT 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 AT x-ray DOT at>
CC: Cygwin General Discussion <cygwin AT cygwin DOT com>
Subject: Re: BUG: Cygwin implementation of Debian package tools
References: <418278CB DOT 6080204 AT cox DOT net> <4182B53D DOT 1030501 AT familiehaase DOT de> <41830281 DOT 6080605 AT cox DOT net> <4183C2EC DOT 1090006 AT x-ray DOT at>
In-Reply-To: <4183C2EC.1090006@x-ray.at>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019