delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/12/14:30:27

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: <20050912182948.1005.qmail@web31501.mail.mud.yahoo.com>
Date: Mon, 12 Sep 2005 11:29:47 -0700 (PDT)
From: "James R. Phillips" <antiskid56-cygwin AT yahoo DOT com>
Reply-To: antiskid56-cygwin AT yahoo DOT com
Subject: Re: rm problem: Directory not empty
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Brian Dessent wrote:

>Any programs still using the file will continue to do so
>obliviously, until the last open handle is closed at which point the
>inode is deleted and the file is actually gone.  This allows the system
>to e.g. replace in-use libraries and then just restart any services that
>were using that library.

Hmm, that _is_ informative.  I've been wondering for some time how that could
possibly work as well as it seems to on Debian (live library replacements).

However, the most common situation in which I experience this problem is when I
leave a shell window open somewhere with current directory set to include some
part of the path I am trying to delete.  And in this case, AFAICT, *nix refuses
to delete, just as windows does.

I've also seen badly behaving windows programs, which refuse to "let go" of a
directory once they have used a file in it, until the program is explicitly
closed.  This is most annoying, as you have to keep closing program windows
until suddenly you guess right, the directory is freed, and can be deleted.

But thanks for answering my original question.

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