Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4a02543c
Commit
4a02543c
authored
Dec 21, 2017
by
Andrew Svetlov
Committed by
GitHub
Dec 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-26133: Dont unsubscribe signals in UNIX even loop on interpreter shutdown (#4956)
parent
e47e698d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
Lib/asyncio/unix_events.py
Lib/asyncio/unix_events.py
+8
-2
Misc/NEWS.d/next/Library/2017-12-21-11-08-42.bpo-26133.mt81QV.rst
...S.d/next/Library/2017-12-21-11-08-42.bpo-26133.mt81QV.rst
+1
-0
No files found.
Lib/asyncio/unix_events.py
View file @
4a02543c
...
...
@@ -51,8 +51,14 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
def
close
(
self
):
super
().
close
()
for
sig
in
list
(
self
.
_signal_handlers
):
self
.
remove_signal_handler
(
sig
)
if
not
sys
.
is_finalizing
():
for
sig
in
list
(
self
.
_signal_handlers
):
self
.
remove_signal_handler
(
sig
)
else
:
warinigs
.
warn
(
f"Closing the loop
{
self
!
r
}
on interpreter shutdown "
f"stage, signal unsubsription is disabled"
,
ResourceWarning
,
source
=
self
)
def
_process_self_data
(
self
,
data
):
for
signum
in
data
:
...
...
Misc/NEWS.d/next/Library/2017-12-21-11-08-42.bpo-26133.mt81QV.rst
0 → 100644
View file @
4a02543c
Don't unsubscribe signals in asyncio UNIX event loop on interpreter shutdown.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment