[Python-Dev] PEP 3147: PYC Repository Directories
barry at python.org
Sun Feb 7 00:29:28 CET 2010
On Feb 01, 2010, at 11:28 PM, Martin v. Löwis wrote:
>So what would you do for concurrent writers, then? The current
>implementation relies on creat(O_EXCL) to be atomic, so a second
>writer would just fail. This is but the only IO operation that is
>guaranteed to be atomic (along with mkdir(2)), so reusing the current
>approach doesn't work.
I believe rename(2) is atomic also, at least on POSIX. I'm not sure if that
helps us though.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 835 bytes
Desc: not available
More information about the Python-Dev