Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf@redhat.com>
To: "Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>
Cc: Kris Warkentin <kewarken@qnx.com>
Subject: Re: File locking of target executable
Date: Tue, 02 Mar 2004 20:52:00 -0000	[thread overview]
Message-ID: <20040302205300.GB11909@redhat.com> (raw)
In-Reply-To: <20040302204402.GA20170@nevyn.them.org>

On Tue, Mar 02, 2004 at 03:44:03PM -0500, Daniel Jacobowitz wrote:
>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.

It depends on the version of Windows and it depends on how the file is
being deleted.

Cygwin uses delete-on-last-close type of semantics in unlink() so that
should work in cases where cygwin is being used.  If you're not using
Cygwin, but you are using Windows NT, you could investigate using the
DELETE_ON_CLOSE argument to CreateFile as a method for (eventually)
deleting an open file.

cgf


  reply	other threads:[~2004-03-02 20:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-02 21:08 Kris Warkentin
2004-03-02 20:40 ` Kris Warkentin
2004-03-02 20:44   ` Daniel Jacobowitz
2004-03-02 20:52     ` Christopher Faylor [this message]
2004-03-02 20:55     ` Andrew Cagney
2004-03-08 17:55       ` Kris Warkentin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040302205300.GB11909@redhat.com \
    --to=cgf@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=kewarken@qnx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox