Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(90500)

Unified Diff: Lib/asyncio/unix_events.py

Issue 21998: asyncio: a new self-pipe should be created in the child process after fork
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/asyncio/selector_events.py ('k') | Lib/selectors.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/asyncio/unix_events.py Thu Feb 05 11:46:45 2015 +0100
+++ b/Lib/asyncio/unix_events.py Thu Feb 05 12:02:08 2015 +0100
@@ -48,6 +48,12 @@ class _UnixSelectorEventLoop(selector_ev
super().__init__(selector)
self._signal_handlers = {}
+ def _at_fork(self):
+ super()._at_fork()
+ self._selector._at_fork()
+ self._close_self_pipe()
+ self._make_self_pipe()
+
def _socketpair(self):
return socket.socketpair()
« no previous file with comments | « Lib/asyncio/selector_events.py ('k') | Lib/selectors.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+