[issue21998] asyncio: support fork
Martin Richard
report at bugs.python.org
Tue Feb 17 16:10:13 CET 2015
Martin Richard added the comment:
In that case, I suggest a small addition to your patch that would do the trick:
in unix_events.py:
+ def _at_fork(self):
+ super()._at_fork()
+ self._selector._at_fork()
+ self._close_self_pipe()
+ self._make_self_pipe()
+
becomes:
+ def _at_fork(self):
+ super()._at_fork()
+ if not hasattr(self._selector, '_at_fork'):
+ return
+ self._selector._at_fork()
+ self._close_self_pipe()
+ self._make_self_pipe()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21998>
_______________________________________
More information about the Python-bugs-list
mailing list