Files
cpython/Lib
Tim Peters 21fbd57d66 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:18:10 +00:00
..
2006-04-12 20:35:02 +00:00
2006-04-03 04:45:34 +00:00
2006-04-03 15:03:44 +00:00
2006-04-16 22:22:36 +00:00
2006-03-05 13:36:04 +00:00
2004-08-20 03:47:14 +00:00
2005-07-17 23:16:17 +00:00
2006-04-04 06:29:05 +00:00
2006-03-07 16:16:07 +00:00
2005-10-20 19:59:25 +00:00
2005-08-25 07:32:42 +00:00
2005-12-25 23:18:31 +00:00
2006-02-26 04:21:50 +00:00
2006-02-08 12:53:56 +00:00
2006-02-19 21:26:07 +00:00
2005-08-21 18:45:59 +00:00
2005-08-31 10:50:03 +00:00
2006-04-11 07:17:08 +00:00
2006-02-28 22:50:17 +00:00
2006-04-11 07:21:20 +00:00
2006-01-20 20:03:24 +00:00
2005-08-21 18:45:59 +00:00
2006-04-06 19:35:27 +00:00
2006-02-27 22:32:47 +00:00
2006-04-17 19:18:18 +00:00
2005-02-07 15:28:45 +00:00
2006-04-17 13:37:15 +00:00
2005-07-17 02:36:59 +00:00
2006-03-16 06:30:02 +00:00
2004-12-17 13:52:20 +00:00
2006-04-03 02:46:44 +00:00
2005-08-21 18:45:59 +00:00
2006-04-21 12:57:35 +00:00
2006-04-11 07:21:20 +00:00
2006-03-16 06:33:21 +00:00
2006-02-27 22:32:47 +00:00
2005-10-28 14:39:47 +00:00
2006-02-25 22:38:04 +00:00
2005-03-28 01:08:02 +00:00
2006-01-20 23:40:56 +00:00