mirror of https://github.com/python/cpython
Issue #9947: logging: Fixed locking bug in stopListening.
This commit is contained in:
parent
32fb6a81f9
commit
9fdd11b3b6
|
@ -917,8 +917,10 @@ def stopListening():
|
||||||
Stop the listening server which was created with a call to listen().
|
Stop the listening server which was created with a call to listen().
|
||||||
"""
|
"""
|
||||||
global _listener
|
global _listener
|
||||||
if _listener:
|
logging._acquireLock()
|
||||||
logging._acquireLock()
|
try:
|
||||||
_listener.abort = 1
|
if _listener:
|
||||||
_listener = None
|
_listener.abort = 1
|
||||||
|
_listener = None
|
||||||
|
finally:
|
||||||
logging._releaseLock()
|
logging._releaseLock()
|
||||||
|
|
|
@ -68,6 +68,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #9947: logging: Fixed locking bug in stopListening.
|
||||||
|
|
||||||
- Issue #9945: logging: Fixed locking bugs in addHandler/removeHandler.
|
- Issue #9945: logging: Fixed locking bugs in addHandler/removeHandler.
|
||||||
|
|
||||||
- Issue #9936: Fixed executable lines' search in the trace module.
|
- Issue #9936: Fixed executable lines' search in the trace module.
|
||||||
|
|
Loading…
Reference in New Issue