delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F2C0D1F.5050801@lysator.liu.se> |
Date: | Fri, 03 Feb 2012 17:36:47 +0100 |
From: | Peter Rosin <peda AT lysator DOT liu DOT se> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: rm fails but returns success |
References: | <4F2C0533 DOT 2070802 AT lysator DOT liu DOT se> <20120203161701 DOT GE30293 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20120203161701.GE30293@calimero.vinschen.de> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Corinna Vinschen skrev 2012-02-03 17:17: > On Feb 3 17:02, Peter Rosin wrote: >> Hi! >> >> I have this annoying leftover file from a automake testsuite run. >> I don't know if it was created by an MSYS process or a Cygwin >> process, but I can't get rid of it. I can't take ownership of >> it either, not even as admin. I haven't tried stopping all >> MSYS/Cygwin processes yet, nor rebooting, but I'd rather not. >> >> Any help with that is appreciated. No, not rebooting :-) >> >> However, that is not really why I'm writing, I'm writing to >> report the following bug related to the above file. >> >> $ uname -a >> CYGWIN_NT-6.1-WOW64 peda-pc 1.7.10s(0.259/5/3) 20120123 00:15:09 i686 Cygwin >> $ ls -l aclibobj.log-t >> -rw-r----- 1 ???????? ???????? 2113 Jan 31 16:09 aclibobj.log-t >> $ rm aclibobj.log-t; echo $? >> rm: remove write-protected regular file `aclibobj.log-t'? yes >> 0 > > Send an strace of this, please. One reason that rm (better: unlink(2)) > reports success is if the file is still in use by another process but > it's already marked as "delete pending" in the OS. This should only > occur if a non-Cygwin process is still holding a handle to the file. I found, using process explorer, a suspended MSYS expr process which have CWD c:\Cygwin\home\peda\automake\tests\aclibobj.dir\ which is probably related. I will not (try to) touch that until you say that this is all as it should be and don't need me to test anything. Cheers, Peter -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |