bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: w32-find-bdf-fonts does not close file handles of files examined


From: Eli Zaretskii
Subject: Re: w32-find-bdf-fonts does not close file handles of files examined
Date: Fri, 22 Jun 2007 15:51:54 +0300

> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]