[Python-checkins] r74907 - in python/branches/py3k: Lib/ctypes/util.py Misc/NEWS
eric.smith
python-checkins at python.org
Fri Sep 18 15:23:14 CEST 2009
Author: eric.smith
Date: Fri Sep 18 15:23:13 2009
New Revision: 74907
Log:
Issue #6882: Import uuid creates zombies processes. I used a slightly different patch than the one attached to the issue, to be consistent with the style in the rest of the module.
Modified:
python/branches/py3k/Lib/ctypes/util.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/ctypes/util.py
==============================================================================
--- python/branches/py3k/Lib/ctypes/util.py (original)
+++ python/branches/py3k/Lib/ctypes/util.py Fri Sep 18 15:23:13 2009
@@ -219,8 +219,12 @@
# XXX assuming GLIBC's ldconfig (with option -p)
expr = r'(\S+)\s+\((%s(?:, OS ABI:[^\)]*)?)\)[^/]*(/[^\(\)\s]*lib%s\.[^\(\)\s]*)' \
% (abi_type, re.escape(name))
- res = re.search(expr,
- os.popen('/sbin/ldconfig -p 2>/dev/null').read())
+ f = os.popen('/sbin/ldconfig -p 2>/dev/null')
+ try:
+ data = f.read()
+ finally:
+ f.close()
+ res = re.search(expr, data)
if not res:
return None
return res.group(1)
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Fri Sep 18 15:23:13 2009
@@ -72,6 +72,8 @@
Library
-------
+- Issue #6882: Import uuid creates zombies processes.
+
- Issue #6635: Fix profiler printing usage message.
- Issue #6856: Add a filter keyword argument to TarFile.add().
More information about the Python-checkins
mailing list