]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 74907 via svnmerge from
authorEric Smith <eric@trueblade.com>
Fri, 18 Sep 2009 13:59:58 +0000 (13:59 +0000)
committerEric Smith <eric@trueblade.com>
Fri, 18 Sep 2009 13:59:58 +0000 (13:59 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r74907 | eric.smith | 2009-09-18 09:23:13 -0400 (Fri, 18 Sep 2009) | 1 line

  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.
........

Lib/ctypes/util.py
Misc/NEWS

index 794b895aa064898c35b6c990341ff16b3478a8ba..1bd2d70fd3759160dd35e2a7d6b627128065a96a 100644 (file)
@@ -219,8 +219,12 @@ elif os.name == "posix":
             # 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)
index ed0692a8fb91f35d08b0225e0b7911211f17f2fd..daeaa43c6ead040d3bdea88c2f362b24d44a5f95 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #6882: Import uuid creates zombies processes.
+
 - Issue #6635: Fix profiler printing usage message.
 
 - Issue #6888: pdb's alias command was broken when no arguments were given.