mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
16df8c93ce
commit
81fd804034
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -72,6 +72,8 @@ C-API
|
|||
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().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue