Re: [Python-Dev] PEP 3147: PYC Repository Directories
6 Feb
2010
6 Feb
'10
11:29 p.m.
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. -Barry
5192
Age (days ago)
5192
Last active (days ago)
0 comments
1 participants
participants (1)
-
Barry Warsaw