diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-01-28 23:11:23 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-01-28 23:11:23 (GMT) |
commit | 4fd5a06580c2b03f0252553e4024f168ea054353 (patch) | |
tree | b52b5b960c7a0b384c7fa6e22cb9c65fbe72222e /Python | |
parent | fea155370e00e58c694392dd79d47e9481897b4f (diff) | |
download | cpython-4fd5a06580c2b03f0252553e4024f168ea054353.zip cpython-4fd5a06580c2b03f0252553e4024f168ea054353.tar.gz cpython-4fd5a06580c2b03f0252553e4024f168ea054353.tar.bz2 |
SF bug #509805 tempfile.gettempdir not threadsafe
This is an ancient race when multiple threads call gettempdir() (or
anything relying on it) for the first time.
Fixed x-platform via the Big Hammer of rearranging the code to serialize
the first calls. Subsequent calls are as fast as before.
Note that the Python test suite can't provoke this bug: it requires
setting up multiple threads making the very first calls into tempfile,
but the test suite uses tempfile several times before getting to
test_threadedtempfile.
Bugfix candidate.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions