Files
cpython/Lib
Tim Peters 3a6d19e8be Merge rev 45631 from trunk.
SF bug #1473760 TempFile can hang on Windows.

Python 2.4 changed ntpath.abspath to do an import
inside the function.  As a result, due to Python's
import lock, anything calling abspath on Windows
(directly, or indirectly like tempfile.TemporaryFile)
hung when it was called from a thread spawned as a
side effect of importing a module.

This is a depressingly frequent problem, and
deserves a more general fix.  I'm settling for
a micro-fix here because this specific one accounts
for a report of Zope Corp's ZEO hanging on Windows,
and it was an odd way to change abspath to begin
with (ntpath needs a different implementation
depending on whether we're actually running on
Windows, and the _obvious_ way to arrange for that
is not to bury a possibly-failing import _inside_
the function).

Note that if/when other micro-fixes of this kind
get made, the new Lib/test/threaded_import_hangers.py
is a convenient place to add tests for them.
2006-04-21 21:22:00 +00:00
..
2006-03-28 06:32:00 +00:00
2004-08-20 03:47:14 +00:00
2005-07-22 18:40:02 +00:00
2006-04-21 21:22:00 +00:00
2004-02-12 17:35:32 +00:00
2006-03-07 16:17:09 +00:00
2004-07-07 20:54:48 +00:00
2006-03-23 19:07:46 +00:00
2005-06-13 01:14:34 +00:00
2005-12-28 15:43:50 +00:00
2005-07-22 21:48:52 +00:00
2004-02-12 17:35:32 +00:00
2005-08-13 09:06:24 +00:00
2004-08-31 11:38:12 +00:00
2005-08-24 04:47:05 +00:00
2006-03-23 19:07:46 +00:00
2004-02-12 17:35:32 +00:00
2006-04-08 12:24:57 +00:00
2006-04-21 21:22:00 +00:00
2004-02-12 17:35:32 +00:00
2005-11-21 17:01:49 +00:00
2005-02-10 13:46:14 +00:00
2004-08-18 15:13:41 +00:00
2006-04-01 00:41:10 +00:00
2004-08-31 13:31:42 +00:00
2004-02-12 17:35:32 +00:00
2004-07-07 20:54:48 +00:00
2005-10-28 06:00:51 +00:00
2006-01-20 21:09:55 +00:00
2003-12-17 20:43:33 +00:00
2004-08-07 21:44:37 +00:00