From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8971 invoked by alias); 2 Mar 2004 20:55:37 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8963 invoked from network); 2 Mar 2004 20:55:37 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 2 Mar 2004 20:55:37 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E39862B92; Tue, 2 Mar 2004 15:55:32 -0500 (EST) Message-ID: <4044F4C4.7040704@gnu.org> Date: Tue, 02 Mar 2004 20:55:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Daniel Jacobowitz , Kris Warkentin Cc: "Gdb@Sources.Redhat.Com" Subject: Re: File locking of target executable References: <4044F049.6060009@qnx.com> <4044F174.10004@qnx.com> <20040302204402.GA20170@nevyn.them.org> In-Reply-To: <20040302204402.GA20170@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00017.txt.bz2 > On Tue, Mar 02, 2004 at 03:41:24PM -0500, Kris Warkentin wrote: > >>> Argh. I always see the answer AFTER I mail to the mailing list. Looks >>> like Windows itself won't let a binary be removed if it's executing. >>> The problem report states that this is happening in the remote case but >>> I just checked and it doesn't seem to be. Must be an error in the bug >>> report. > > > It can happen in the remote case too sometimes - I don't think Windows > lets you delete an open file either. Look at bfd_cache_close(), which may solve the problem. Andrew