How to safely maintain a status file
rridge at csclub.uwaterloo.ca
Thu Jul 12 17:48:43 CEST 2012
> This is not a contradiction. Although the rename operation is atomic,
> the whole "change status" process is not. It is because there are two
> operations: #1 delete old status file and #2. rename the new status
> file. And because there are two operations, there is still a race
> condition. I see no contradiction here.
Christian Heimes <lists at cheimes.de> wrote:
>Sorry, but you are wrong. It's just one operation that boils down to
>"point name to a different inode".
For some reason you're assuming POSIX semantics, an assumption that
Laszlo Nagy did not make.
l/ // Ross Ridge -- The Great HTMU
[oo][oo] rridge at csclub.uwaterloo.ca
More information about the Python-list