提交 72f55a4c authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed situation where compile lock would not be released after failing to create…

Fixed situation where compile lock would not be released after failing to create a temporary work dir
上级 bf01580a
......@@ -760,6 +760,9 @@ class ModuleCache(object):
compilelock.get_lock()
# This try/finally block ensures that the lock is released once we
# are done writing in the cache file or after raising an exception.
try:
# Embedding two try statements for Python 2.4 compatibility
# (cannot do try / except / finally).
try:
location = dlimport_workdir(self.dirname)
except OSError, e:
......@@ -768,10 +771,6 @@ class ModuleCache(object):
error('There are', len(os.listdir(config.compiledir)),
'files in', config.compiledir)
raise
try:
# Embedding two try statements for Python 2.4 compatibility
# (cannot do try / except / finally).
try:
compile_steps = fn(location=location).__iter__()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论