[alexandria-devel] Proposed addition of temporary file creation utilities

Antony lisp.linux at gmail.com
Sun Apr 22 17:55:28 UTC 2012


On 4/22/2012 10:31 AM, Faré wrote:
> I'd rather any widely promoted version of with-temporary-file either use
> mkstemp with appropriate defaults for the directory,
> or try very hard to behave in a similar fashion to mkostemp with
> appropriate defaults.
> Unhappily, setting the umask around an otherwise umask-ignorant
> with-temporary-file
> is not thread-safe.
To Hans
In addition to the suggested use of mkstemp kind of things, I'd like to 
point out that your proposed code's use of 'random' may not be thread 
safe (I don't mean it's hazardous, but it may not generate unique 
names).  May not be a big deal, but just one more point to consider.
-Antony





More information about the alexandria-devel mailing list