[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: |
Jason Rumney |
Subject: |
Re: w32-find-bdf-fonts does not close file handles of files examined |
Date: |
Wed, 20 Jun 2007 22:29:07 +0100 |
User-agent: |
Thunderbird 2.0.0.4 (Windows/20070604) |
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.