unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jason Rumney <jasonr@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: w32-find-bdf-fonts does not close file handles of files examined
Date: Fri, 22 Jun 2007 15:51:54 +0300	[thread overview]
Message-ID: <utzt0p2xh.fsf@gnu.org> (raw)
In-Reply-To: <46799C23.9080205@gnu.org> (message from Jason Rumney on Wed, 20 Jun 2007 22:29:07 +0100)

> Date: Wed, 20 Jun 2007 22:29:07 +0100
> From: Jason Rumney <jasonr@gnu.org>
> Cc: bug-gnu-emacs@gnu.org
> 
> Michael Schierl wrote:
> > Start with emacs -Q and run this code:
> >
> > (let* ((tmpdir (make-temp-file "bugdir-" t))
> >        (tmpfile (expand-file-name "dummy.bdf" tmpdir)))
> >   (with-current-buffer (find-file-noselect tmpfile)
> >     (insert "STARTFONT 2.1\n")
> >     (save-buffer 0))
> >   (w32-find-bdf-fonts tmpdir)
> >   (delete-file tmpfile)
> >   (delete-directory tmpdir))
> >
> > It will signal an error at delete-file because it cannot delete the
> > given file.
> 
> Thanks for the report. I have fixed this in the Emacs 22 branch now.
> Although the file was being closed, it was still mapped into memory, so
> the OS was keeping it open.

Btw, why are we using memory-mapped files for this functionality?

  reply	other threads:[~2007-06-22 12:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20 20:28 w32-find-bdf-fonts does not close file handles of files examined Michael Schierl
2007-06-20 21:29 ` Jason Rumney
2007-06-22 12:51   ` Eli Zaretskii [this message]
2007-06-22 13:22     ` Jason Rumney
2007-06-22 17:58       ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=utzt0p2xh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=jasonr@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).