Message95487
| Author |
doko |
| Recipients |
doko |
| Date |
2009年11月19日.16:20:21 |
| SpamBayes Score |
0.00038128294 |
| Marked as misclassified |
No |
| Message-id |
<1258647622.46.0.810277433722.issue7360@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
[forwarded from http://bugs.debian.org/451733]
the mailbox._singlefileMailbox class is not safe with concurrent access,
because mailbox._singlefileMailbox.flush() replaces the underlying file
with a new copy by constructing a temporary file and then renaming it.
This breaks all other class instances which have this mailbox open. I'm
attaching a script demonstrating the problem.
I think it's a bad idea to use rename(2) here; overwriting the file
content would fix the race condition, and #451274 too[1]. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年11月19日 16:20:22 | doko | set | recipients:
+ doko |
| 2009年11月19日 16:20:22 | doko | set | messageid: <1258647622.46.0.810277433722.issue7360@psf.upfronthosting.co.za> |
| 2009年11月19日 16:20:21 | doko | link | issue7360 messages |
| 2009年11月19日 16:20:21 | doko | create |
|