On Sat, Sep 03, 2005 at 11:53:52PM +0200, Florian Weimer wrote:
> * Frank Lichtenheld:
> 
> > I mean, after closing fd _and_ unlinking the temporary file it is
> > completly gone and the race is open again, isn't it? Wouldn't be
> > the right fix to return the fd from the function and not bother
> > about the filename at all?
> 
> In the interest of a minimal change, it might make more sense to
> simply leave the file around, so that it is subsequently opened again?

True, but that would mean not to unlink it, wouldn't it?

> Passing around a descriptor seems to require quite a few changes,
> more than just the immediate caller.

Gruesse,
-- 
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to