Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.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" Reply-To: antiskid56-cygwin@yahoo.com Subject: Re: rm problem: Directory not empty To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/