[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tmpfile leaks
From: |
Andy Wingo |
Subject: |
Re: tmpfile leaks |
Date: |
Wed, 17 Aug 2011 23:56:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Sat 30 Jul 2011 07:02, Ken Raeburn <address@hidden> writes:
> On Jul 29, 2011, at 12:04, Chris K. Jester-Young wrote:
>> 2. Use tmpfile as before, dup the file descriptor, and close the stdio
>> stream unconditionally. This is wasteful of a file stream in that
>> one gets created only to be immediately destroyed, but it's more
>> faithful to the system-provided tmpfile, quirks and all.
I have applied something like this; thanks.
> Better check whether these will work on Windows, where file deletion
> interacts differently than on UNIX.
It won't work there. We'd need to set up some sort of deferred thing to
delete the file. Perhaps better to not provide tmpfile on mingw.
Andy
--
http://wingolog.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: tmpfile leaks,
Andy Wingo <=