Re: temp files under C
Richard Braakman <dark@xs4all.nl> wrote:
> Remember that you need a fallback if the name turns out to be already
> in use. Even if the function you call checks for this, the name could
> be snatched by another process just before you try to open it. The
> easiest solution is probably to have a loop around tmpnam(3) or one
> of its friends. Or reconsider why you need to know the name of a
> temporary file :)
Depends on the application. For some, it's better to die straight away
than try again.
--
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Reply to: